https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 822e9c88e5c38174de80ea6a822b32578d07fa94 authored by moz-wptsync-bot on 28 March 2018, 19:30:44 UTC
Correct readyState in WebSocket when worker goes away,
Tip revision: 822e9c8
selector-read-write-type-change-001.html
<!DOCTYPE html>
<html>
  <head>
    <title>Check for correctly updating :read-write matching on type change</title>
    <link rel="match" href="selector-read-write-type-change-001-ref.html">
    <link rel="help" href="https://drafts.csswg.org/selectors-4/#rw-pseudos">
    <style>
      span { color: green; }
      :read-write + 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