<!DOCTYPE html>
<html>
  <!-- Test: if input is valid but its value hasn't been changed,
             it should not be affected by :-moz-ui-valid pseudo-class. -->
  <link rel='stylesheet' type='text/css' href='style.css'>
  <body>
    <input class='notvalid' pattern='foo' value='foo'>
  </body>
</html>