-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathcounters-006.html
More file actions
38 lines (35 loc) · 849 Bytes
/
counters-006.html
File metadata and controls
38 lines (35 loc) · 849 Bytes
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>
<title>CSS Lists: counters instantiating</title>
<link rel="author" title="Daniil Sakhapov" href="mailto:sakhapov@chromium.org">
<link rel="help" href="https://www.w3.org/TR/css-lists-3/#instantiating-counters">
<link rel="match" href="counters-006-ref.html">
<style type="text/css">
* {
padding: 0;
margin: 0;
}
.test {
counter-increment: section;
counter-reset: multilevel;
}
ol[multilevel] > li::before {
content: counter(section) "." counters(multilevel, ".") ".";
counter-increment: multilevel;
}
ol[multilevel] {
list-style: none !important;
clear: both;
}
</style>
<div class="test"></div>
<ol multilevel="multilevel">
<li>1.1</li>
<li>1.2</li>
<li>1.3</li>
</ol>
<div class="test"></div>
<ol multilevel="multilevel">
<li>2.1</li>
<li>2.2</li>
<li>2.3</li>
</ol>