DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (409f3966645a)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<!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">
    <style>
      span { color: red; }
      :-moz-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>