https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 57a82af3537d05ffe7b022c53939e6fb54895c6c authored by Stephen McGruer on 04 April 2018, 19:41:56 UTC
Web Animations: Fix bug with Document::getAnimations
Tip revision: 57a82af
selector-required-type-change-001.html
<!DOCTYPE html>
<html>
  <head>
    <title>Check for correctly updating :required matching on type change</title>
    <link rel="match" href="selector-required-type-change-001-ref.html">
    <link rel="help" href="https://drafts.csswg.org/selectors-4/#opt-pseudos">
    <style>
      span { color: green; }
      :required + span { color: red }
    </style>
    <script>
      onload = function() {
        document.querySelector("input").type = "button";
      }
    </script>
  </head>
  <body>
    <input required><span>This should be green</span>
  </body>
</html>
back to top