layout/reftests/css-optional/css-optional-dyn-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/css-optional/css-optional-dyn-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html class="reftest-wait">
     1.6 +  <!-- Test: Remove the required attribute to an input element
     1.7 +             to make it optional. -->
     1.8 +  <link rel='stylesheet' type='text/css' href='css-optional-style.css'>
     1.9 +
    1.10 +  <script type="text/javascript">
    1.11 +    function removeRequired()
    1.12 +    {
    1.13 +      document.getElementById('i').removeAttribute('required');
    1.14 +    }
    1.15 +    function disableReftestWait()
    1.16 +    {
    1.17 +      document.documentElement.className = '';
    1.18 +    }
    1.19 +  </script>
    1.20 +
    1.21 +  <body onload="removeRequired(); disableReftestWait();">
    1.22 +    <input id="i" required>
    1.23 +  </body>
    1.24 +</html>

mercurial