4 <title>CSS Test: flow-into on list items from lists that use a single CSS counter with nested scopes 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 ordered lists. Extracting parts of a list numbered using a single counter in nested scopes should render in regions just as without regions.">
15 counter-reset: items 0;
19 counter-increment: items 1;
20 list-style-type: none;
23 counter-increment: items 2;
26 content: counters(items, ".") ". ";
27 display: inline-block;
32 content: counters(items, ".", upper-roman) ". ";
35 content: counters(items, ".", upper-latin) ". ";
38 content: counter(items, disc) " ";
41 -webkit-flow-into: f1;
45 -webkit-flow-into: f2;
50 background-color: lightgray;
57 -webkit-flow-from: f1;
58 background-color: lightgreen;
61 -webkit-flow-from: f2;
62 background-color: lightblue;
67 <p>This test passes if you see two rectangles, one green and one blue, as described below.</p>
68 <p>The green rectangle should contain two lists, <em>one numbered</em> and <em>one bulleted</em>. The <strong>numbered list</strong> should be numbered with roman numerals. Inside it, after the second item there should be a two items bulleted list that's indented. After the first bullet there should a three items numbered list. The numbering for this list should use three levels of period separated decimal numbers (<em>e.g.</em> 2.1.1). The <strong>bulleted list</strong> should have 4 items and the same indentation as the roman-numbered list above it.</p>
69 <p>The blue rectangle should contain a four items numbered list. The numbering for this list should use three levels of period separated decimal numbers, starting at 2.2.1.</p>
71 <ol class="roman extract1">
72 <li>Roman list, item I</li>
73 <li>Roman list, item II
77 <li>Sub-point 2.1.1</li>
78 <li>Sub-point 2.1.2</li>
83 <li>Sub-point 2.2.1</li>
84 <li>Sub-point 2.2.2</li>
85 <li>Sub-point 2.2.3</li>
86 <li>Sub-point 2.2.4</li>
91 <li>Roman list, item III</li>
92 <li>Roman list, item IV
93 <ul class="disc extract1">
94 <li>Another bullet 1</li>
95 <li>Another bullet 2</li>
96 <li>Another bullet 3</li>
97 <li>Another bullet 4</li>
101 <div class="region" id="r1"></div>
102 <div class="region" id="r2"></div>