4 <title>CSS Test: flow-into on list items from lists that use multiple CSS counters with nested scopes and ::after 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. List items numbered using multiple counters displayed in the ::after pseudo-element and extracted in a named flow should render in regions just as without regions.">
29 counter-reset: part 0;
32 counter-increment: part;
35 content: counter(part, upper-roman) " ";
40 counter-reset: chapter 0;
43 counter-increment: chapter;
45 ol.chapter>li::after {
46 content: "\2026\ " counter(chapter, decimal);
50 counter-reset: section 0;
53 counter-increment: section;
55 ol.section>li::after {
56 content: counter(part, upper-roman) "." counter(chapter, decimal) "-" counter(section, lower-latin) " ";
61 -webkit-flow-into: f1;
64 -webkit-flow-into: f2;
67 background-color: lightgray;
74 -webkit-flow-from: f1;
77 -webkit-flow-from: f2;
82 <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>
83 <p>The first rectangle contains two numbered lists. The <strong>first list</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 has 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 numbered list; the numbering is blue and uses three levels of numbering: roman, decimal 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 numbering, that starts at I.3-a this time.</p>
84 <p>The second rectangle contains a two-items numbered list, numbered using decimal numbers preceded by an ellipsis. After the first item there's a sublist. 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>
85 <ol class="part extract1">
91 <ol class="section extract1">
92 <li>Section I.3-a</li>
93 <li>Section I.3-b</li>
98 <li>Section I.4-a</li>
105 <ol class="chapter extract2">
108 <li>Section III.1-a</li>
109 <li>Section III.1-b</li>
110 <li>Section III.1-c</li>
111 <li>Section III.1-d</li>
118 <div class="region" id="r1"></div>
119 <div class="region" id="r2"></div>