OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <title>CSS Reftest Reference</title> | |
5 <link rel="author" title="Mihai Balan" href="mibalan@adobe.com"> | |
6 <link rel="stylesheet" type="text/css" href="../resources/font-smoothing
-disabler.css"> | |
7 <style> | |
8 /*Lists setup*/ | |
9 ol { | |
10 padding-left: 1em; | |
11 } | |
12 ol>li { | |
13 display: block; | |
14 position: relative; | |
15 } | |
16 li::after { | |
17 position: absolute; | |
18 top: 0; | |
19 right: 0; | |
20 margin-right: .5em; | |
21 } | |
22 ol.part { | |
23 counter-reset: part 0; | |
24 } | |
25 ol.part>li { | |
26 counter-increment: part; | |
27 } | |
28 ol.part>li::after { | |
29 content: counter(part, upper-roman) " "; | |
30 font-weight: bold; | |
31 } | |
32 | |
33 ol.chapter { | |
34 counter-reset: chapter 0; | |
35 } | |
36 ol.chapter>li { | |
37 counter-increment: chapter; | |
38 } | |
39 ol.chapter>li::after { | |
40 content: "\2026\ " counter(chapter, decimal); | |
41 } | |
42 | |
43 ol.section { | |
44 counter-reset: section 0; | |
45 } | |
46 ol.section>li { | |
47 counter-increment: section; | |
48 } | |
49 ol.section>li::after { | |
50 content: counter(part, upper-roman) "." counter(chapter, decimal) "-
" counter(section, lower-latin) " "; | |
51 color: blue; | |
52 } | |
53 /*Extracted content setup*/ | |
54 ol.part1-chap3-section { | |
55 counter-reset: part 1 chapter 3; | |
56 } | |
57 ol.part3-chap { | |
58 counter-reset: part 3; | |
59 } | |
60 .slim { | |
61 margin-top: 0; | |
62 margin-bottom: 0; | |
63 } | |
64 /*Regions setup*/ | |
65 .region { | |
66 background-color: lightgray; | |
67 margin: 1em; | |
68 float: left; | |
69 width: 20em; | |
70 height: 20em; | |
71 } | |
72 </style> | |
73 </head> | |
74 <body> | |
75 <p>This test passes if you see two gray rectangles, as described below.
All numbering should be aligned to the right margin of the rectangles.</p> | |
76 <p>The first rectangle contains two numbered lists. The <strong>first li
st</strong> has three items and is numbered using bold roman numerals, starting
at 1 (I). After the first item there's a numbered sublist; it is indented and ha
s four items, numbered using decimal numbers preceded by an ellipsis (…),
starting at 1. After the last item in this sublist there's a single item number
ed list; the numbering is blue and uses three levels of numbering: roman, decima
l and with latin letters, respectively; numbering starts with I.4-a. The <strong
>second list</strong> has two items and uses the same blue, three-level numberin
g, that starts at I.3-a this time.</p> | |
77 <p>The second rectangle contains a two-items numbered list, numbered usi
ng decimal numbers preceded by an ellipsis. After the first item there's a subli
st. The sublist is indented and has blue, three level-numbering: roman, decimal
and with latin letters, respectively. Numbering starts with <em>III.1-a</em>.</p
> | |
78 <div class="region" id="r1"> | |
79 <ol class="part"> | |
80 <li>Part I | |
81 <ol class="chapter"> | |
82 <li>Chapter 1</li> | |
83 <li>Chapter 2</li> | |
84 <li>Chapter 3 | |
85 </li> | |
86 <li>Chapter 4 | |
87 <ol class="section"> | |
88 <li>Section I.4-a</li> | |
89 </ol> | |
90 </li> | |
91 </ol> | |
92 </li> | |
93 <li>Part II</li> | |
94 <li>Part III | |
95 </li> | |
96 </ol> | |
97 <ol class="section part1-chap3-section"> | |
98 <li>Section I.3-a</li> | |
99 <li>Section I.3-b</li> | |
100 </ol> | |
101 </div> | |
102 <div class="region" id="r2"> | |
103 <ol class="chapter part3-chap slim"> | |
104 <li>Chapter 1 | |
105 <ol class="section"> | |
106 <li>Section III.1-a</li> | |
107 <li>Section III.1-b</li> | |
108 <li>Section III.1-c</li> | |
109 <li>Section III.1-d</li> | |
110 </ol> | |
111 </li> | |
112 <li>Chapter 2</li> | |
113 </ol> | |
114 </div> | |
115 </body> | |
116 </html> | |
OLD | NEW |