OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <title>CSS Test: flow-into on ordered lists that use multiple CSS counte
rs and ::before for list numbering</title> | |
5 <link rel="author" title="Mihai Balan" href="mibalan@adobe.com"> | |
6 <link rel="help" href="http://www.w3.org/TR/css3-regions/#properties-and
-rules" /> | |
7 <link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-
property" /> | |
8 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-
counter-reset" /> | |
9 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-
counter-increment" /> | |
10 <link rel="stylesheet" type="text/css" href="../resources/font-smoothing
-disabler.css"> | |
11 <meta name="flags" content=""> | |
12 <meta name="assert" content="The flow-into property can be applied to or
dered lists. List items numbered using a single counter in nested scopes and ext
racted in a named flow should render in regions just as without regions."> | |
13 <style> | |
14 #list1 ol, ul { | |
15 counter-reset: items 0; | |
16 padding-left: 2em; | |
17 } | |
18 li { | |
19 counter-increment: items 1; | |
20 list-style-type: none; | |
21 } | |
22 .twice>li { | |
23 counter-increment: items 2; | |
24 } | |
25 li::before { | |
26 content: counters(items, ".") ". "; | |
27 display: inline-block; | |
28 margin-right: .3em; | |
29 text-align: right; | |
30 } | |
31 .roman>li::before { | |
32 content: counters(items, ".", upper-roman) ". "; | |
33 } | |
34 .disc>li::before { | |
35 content: counter(items, disc) " "; | |
36 } | |
37 #list1 { | |
38 -webkit-flow-into: f1; | |
39 } | |
40 | |
41 .region { | |
42 background-color: lightgray; | |
43 margin: 1em; | |
44 float: left; | |
45 width: 17em; | |
46 height: 15em; | |
47 } | |
48 #r1 { | |
49 -webkit-flow-from: f1; | |
50 } | |
51 </style> | |
52 </head> | |
53 <body> | |
54 <p>This test passes if you see a gray rectangle with a list containing s
ublists as follows: the outermost list items should be numbered using roman nume
rals; the second-level list should be a bullet list with two items; the innermos
t list should be numbered using three levels of decimal numbers (<em>e.g.</em> 2
.1.1).</p> | |
55 <ol class="roman" id="list1"> | |
56 <li>Roman list, item I</li> | |
57 <li>Roman list, item II | |
58 <ul class="disc"> | |
59 <li>Bullet 1 | |
60 <ol> | |
61 <li>Sub-point 2.1.1</li> | |
62 <li>Sub-point 2.1.2</li> | |
63 </ol> | |
64 </li> | |
65 <li>Bullet 2 | |
66 <ol> | |
67 <li>Sub-point 2.2.1</li> | |
68 <li>Sub-point 2.2.2</li> | |
69 <li>Sub-point 2.2.3</li> | |
70 <li>Sub-point 2.2.4</li> | |
71 </ol> | |
72 </li> | |
73 </ul> | |
74 </li> | |
75 <li>Roman list, item III</li> | |
76 <li>Roman list, item IV</li> | |
77 </ol> | |
78 <div class="region" id="r1"></div> | |
79 </body> | |
80 </html> | |
OLD | NEW |