https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 11d564dd8ba7b46b0f40b8641c40cd50d2876cd4 authored by Stephen McGruer on 14 April 2018, 15:31:17 UTC
Reland "Web Animations: Fix bugs in procedure to process a keyframes argument"
Tip revision: 11d564d
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