summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/highlight-cascade-001-ref.html
blob: a18690962fcd4e73d5832f76e7afb8ee681ae24e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!doctype html>
<meta charset="utf-8">
<link rel="author" title="Delan Azabani" href="mailto:dazabani@igalia.com">
<script src="support/selections.js"></script>
<link rel="stylesheet" href="support/highlights.css">
<style>
    main {
        font-size: 7em;
        margin: 0.5em;
    }
    main > span::selection {
        background-color: green;
        color: white;
    }
</style>
<p>Test passes if the text below is white on green.
<main class="highlight_reftest"><span>quick</span></main>
<script>selectNodeContents(document.querySelector("main"));</script>