blob: 67bec9a57e735cd9bee6df099e88a5705af54ed0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Reference Test</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style>
div
{
font-size: 40px;
line-height: 1;
}
/*
https://www.w3.org/TR/css-pseudo-4/#highlight-bounds
For text, the corresponding overlay must cover at least
the entire em box and may extend further above/below the
em box to the line box edges.
*/
span
{
background-color: Highlight;
color: HighlightText;
}
.yellow {
background-color: yellow;
}
</style>
<div class="yellow">
<span>With getSelection()</span>
</div>
<div class="yellow">
<span>With system-color-highlight</span>
</div>
|