layout/reftests/css-valid/input/input-disabled-fieldset-2.html
author shindli <shindli@mozilla.com>
Sun, 16 Jun 2019 00:45:47 +0300
changeset 479045 69628e2c8fd19479d7ec64de4c9694c845497083
parent 54342 b15d9c989201e77fdf2103fbf46fd3168f32a806
permissions -rw-r--r--
Merge inbound to mozilla-central. a=merge

<!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>