summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-selectors/state-dependent-in-any.html
blob: 8ee1ea48f97237421ec0b3b2b2a0c027ec1df71e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html>
  <head>
    <style>
      span { color: red; }
      :-moz-any(:valid) + span { color: green; }
    </style>
  </head>
  <body>
    <input required><span>This should be green</span>
    <script>
      document.body.offsetWidth;
      document.getElementsByTagName("input")[0].value = "Test"
    </script>
  </body>
</html>