https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e763335602af9b981c691f4c66eff25ef46bdea7 authored by Marcos Cáceres on 07 September 2018, 07:56:16 UTC
Add defaults to PaymentMethodChangeEventInit's members.
Tip revision: e763335
selector-read-write-type-change-002.html
<!DOCTYPE html>
<html class="reftest-wait">
  <head>
    <title>Check for correctly updating :read-write matching on type change</title>
    <link rel="match" href="selector-read-write-type-change-002-ref.html">
    <link rel="help" href="https://drafts.csswg.org/selectors-4/#rw-pseudos">
    <style>
      span { color: red; }
      :read-write + span { color: green }
    </style>
    <script>
      onload = function() {
        // setTimeout because in some browsers apparently a toplevel restyle
        // happens right after the load event fires?
        setTimeout(function() {
          document.querySelector("input").type = "";
          document.documentElement.className = "";
        }, 10);
      }
    </script>
  </head>
  <body>
    <input type="hidden" required><span>This should be green</span>
  </body>
</html>
back to top