- Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathcounters-005.html
38 lines (34 loc) · 954 Bytes
/
counters-005.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
<!DOCTYPE html>
<html>
<head>
<title>CSS Lists: Implied counter scopes by 'counter-increment'</title>
<linkrel="author" title="Daniil Sakhapov" href="mailto:sakhapov@chromium.org">
<linkrel="help" href="https://drafts.csswg.org/css-lists/#propdef-counter-increment">
<linkrel="match" href="counters-005-ref.html">
<styletype="text/css">
body { white-space: nowrap; }
.i { counter-increment: c 1; }
.ib:before { counter-increment: c 1; content:"B" }
.r { counter-reset: c 0; }
.u:before { content:counters(c,".") " "; }
</style>
</head>
<body>
<p>The following two lines should be identical:</p>
<div>
<spanclass="ib">
<spanclass="u"></span>
<spanclass="r">
<spanclass="u"></span>
</span>
</span>
<spanclass="i">
<spanclass="u"></span>
<spanclass="r">
<spanclass="u"></span>
</span>
</span>
</div>
<div>B 1 0 1 1.0</div>
</body>
</html>