summaryrefslogtreecommitdiffstats
path: root/layout/reftests/scoped-style/scoped-style-024.html
blob: c193958e6faf91da914a08514b69e57121214859 (plain)
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE html>
<body>
  <style scoped>
    p[data-test] { color: green; }
  </style>
  <p>Hello.</p>
  <script>
    document.body.offsetHeight;
    document.querySelector("p").setAttribute("data-test", "");
  </script>
</body>