summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/highlight-cascade-004-ref.html
blob: f9bf83f9c1d63b50b61b96a4edadc1241d3c640b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<title>Initial custom property values in div::selection rule</title>
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#highlight-cascade">
<script src="support/selections.js"></script>
<style>
  div::selection {
    background-color: green;
  }
</style>
<div>PASS if background-color is green when selected</div>
<script>
  selectNodeContents(document.querySelector("div"));
</script>