- Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathfoo-counter-reversed-007a.html
68 lines (68 loc) · 1.88 KB
/
foo-counter-reversed-007a.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
66
67
68
<!doctype html>
<title></title>
<linkrel="help" href="https://drafts.csswg.org/css-lists/#instantiating-counters">
<linkrel="help" href="https://github.com/w3c/csswg-drafts/issues/6738">
<linkrel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1706346">
<linkrel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
<linkrel="match" href="li-value-reversed-007-ref.html">
<metaname="assert" content="The last counter-increment value determines the start value.">
<style>
:root {
color:black; background-color:white; font:10px/1 monospace;
}
::marker {
content:counter(foo) ". ";
}
ol::before,li::before {
content:counters(foo,".");
}
ol[reversed] {
counter-reset:reversed(foo);
}
li {
counter-increment: foo -1;
}
</style>
<olreversed>
<listyle="counter-increment: foo -2">
<listyle="counter-increment: foo -2">
<olreversed>
<listyle="counter-increment: foo -3">
<listyle="counter-increment: foo -1">
<listyle="counter-increment: foo -8">
</ol>
</li>
<listyle="counter-increment: foo -2">
</ol>
<olreversed>
<listyle="counter-increment: foo -3">
<listyle="counter-increment: foo -1">
<olreversed>
<listyle="counter-increment: foo -2">
<listyle="counter-increment: foo -2">
<listyle="counter-increment: foo -2">
</ol>
</li>
<listyle="counter-increment: foo -8">
</ol>
<olreversed>
<listyle="counter-increment: foo 2">
<listyle="counter-increment: foo 2">
<listyle="counter-increment: foo 2">
<olreversed>
<listyle="counter-increment: foo 3">
<listyle="counter-increment: foo 1">
<listyle="counter-increment: foo 8">
</ol>
</li>
</ol>
<olreversed>
<olreversed>
<listyle="counter-increment: foo 3">
<listyle="counter-increment: foo 1">
<listyle="counter-increment: foo 8">
</ol>
<listyle="counter-increment: foo 3">
<listyle="counter-increment: foo 1">
<listyle="counter-increment: foo 8">
</ol>