layout/reftests/css-valid/input/input-disabled-fieldset-2.html
author Mounir Lamouri <mounir.lamouri@gmail.com>
Sat, 18 Sep 2010 23:33:16 +0200
changeset 54342 b15d9c989201e77fdf2103fbf46fd3168f32a806
permissions -rw-r--r--
Bug 557087 (2/6) - Make the content aware of the new disabled state rule. r+a=sicking

<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: if input has a disabled fieldset ancestor, it is barred from
             constraint validation and should not be affected by :valid
             pseudo-class. -->
  <link rel='stylesheet' type='text/css' href='style.css'>
  <script>
    function onloadHandler()
    {
      var fieldsets = document.getElementsByTagName("fieldset");
      fieldsets[1].disabled = true;
      fieldsets[0].disabled = false;
      document.documentElement.className='';
    }
  </script>
  <body onload="onloadHandler();">
    <fieldset disabled>
      <fieldset>
        <input class='notvalid'>
      </fieldset>
    </fieldset>
  </body>
</html>