-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
marker-content-018.html
65 lines (65 loc) · 1.55 KB
/
marker-content-018.html
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Test: ::marker pseudo elements styled with 'content' property</title>
<link rel="match" href="marker-content-018-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-rules">
<meta name="assert" content="Checks that the 'content' property of a ::marker doesn't affect white space.">
<style>
ol {
float: left;
width: 100px;
}
.inside {
list-style-position: inside;
}
li:nth-child(1)::marker { content: "1" }
li:nth-child(2)::marker { content: "1 " }
li:nth-child(3)::marker { content: "1 " }
li:nth-child(4)::marker { content: " 1" }
li:nth-child(5)::marker { content: " 1" }
li:nth-child(6)::marker { content: " 1 " }
li:nth-child(7)::marker { content: "1\9 2" }
li:nth-child(8)::marker { content: "1\a 2" }
</style>
<ol class="inside">
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
</ol>
<ol class="inside">
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
</ol>
<ol class="outside">
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
</ol>
<ol class="outside">
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
</ol>