layout/reftests/css-invalid/input/input-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-invalid/input/input-dyn-not-disabled.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html class="reftest-wait">
     1.6 +  <!-- Test: if input is not disabled and invalid, it is candidate for
     1.7 +             constraint validation and should be affected
     1.8 +             by :invalid pseudo-class. -->
     1.9 +  <link rel='stylesheet' type='text/css' href='style.css'>
    1.10 +  <script>
    1.11 +    function onLoadHandler()
    1.12 +    {
    1.13 +      var e = document.getElementById('i');
    1.14 +      e.setCustomValidity('foo');
    1.15 +      e.removeAttribute('disabled');
    1.16 +      document.documentElement.className='';
    1.17 +    }
    1.18 +  </script>
    1.19 +  <body onload="onLoadHandler();">
    1.20 +    <input class='invalid' id='i' disabled>
    1.21 +  </body>
    1.22 +</html>

mercurial