layout/reftests/css-ui-valid/textarea/textarea-dyn-not-disabled.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/css-ui-valid/textarea/textarea-dyn-not-disabled.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html class="reftest-wait">
     1.6 +  <head>
     1.7 +    <script>
     1.8 +      function doTest() {
     1.9 +        document.getElementById('t').removeAttribute('disabled');
    1.10 +        document.documentElement.className='';
    1.11 +      }
    1.12 +      document.addEventListener("MozReftestInvalidate", doTest, false);
    1.13 +    </script>
    1.14 +  </head>
    1.15 +  <!-- Test: if textarea is not disabled but its value hasn't been modified,
    1.16 +             it should not be affected by :-moz-ui-valid pseudo-class. -->
    1.17 +  <link rel='stylesheet' type='text/css' href='style.css'>
    1.18 +  <body>
    1.19 +    <textarea class='notvalid' id='t' disabled></textarea>
    1.20 +  </body>
    1.21 +</html>

mercurial