File: extract-ordered-lists-in-regions-explicit-counters-001.html

package info (click to toggle)
firefox-esr 68.10.0esr-1~deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,143,932 kB
  • sloc: cpp: 5,227,879; javascript: 4,315,531; ansic: 2,467,042; python: 794,975; java: 349,993; asm: 232,034; xml: 228,320; sh: 82,008; lisp: 41,202; makefile: 22,347; perl: 15,555; objc: 5,277; cs: 4,725; yacc: 1,778; ada: 1,681; pascal: 1,673; lex: 1,417; exp: 527; php: 436; ruby: 225; awk: 162; sed: 53; csh: 44
file content (116 lines) | stat: -rw-r--r-- 3,458 bytes parent folder | download | duplicates (4)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html>
	<head>
		<title>CSS Test: flow-into on ordered lists that use a single CSS counter and ::before for list numbering</title>
		<link rel="author" title="Mihai Balan" href="mailto:mibalan@adobe.com">
		<link rel="help" href="http://www.w3.org/TR/css3-regions/#properties" />
        <link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" />
		<meta name="flags" content="">
		<meta name="assert" content="The flow-into property can be applied to ordered lists. Multiple lists using a single counter displayed in generated content and extracted in a named flow should render in regions just as without regions.">
		<link rel="match" href="reference/extract-ordered-lists-in-regions-explicit-counters-001-ref.html">
		<style>
		ol {
			list-style-type: none;
			counter-reset: items 0;
		}
		ol>li {
			counter-increment: items;
		}
		li::before {
			content: counter(items) ". ";
			display: inline-block;
			width: 1.5em;
			margin-right: .3em;
			text-align: right;
		}

		ol.double>li {
			counter-increment: items 2;
		}
		ol.double>li::before {
			content: counter(items, upper-latin) ". ";
		}

		ol.down-ten {
			counter-reset: items 11;
		}
		ol.down-ten>li {
			counter-increment: items -1;
		}
		ol.down-ten>li::before {
			content: counter(items, upper-roman) ". ";
			width: 2em;
		}

		#list1 {
			flow-into: flow1;
		}
		#list21, #list22 {
			flow-into: flow2;
		}
		#list31 {
			flow-into: flow3;
		}

		.region {
			background-color: lightgray;
			margin: 1em;
			float: left;
			width: 18em;
			height: 15em;
		}
		#region1 {
			flow-from: flow1;
		}
		#region2 {
			flow-from: flow2;
		}
		#region3 {
			flow-from: flow3;
		}
		</style>
	</head>
	<body>
		<p>The test passes if there are three gray rectangles as follows:<br>
			1. the first one contains a numbered, 4 items list<br>
			2. the second contains two numbered, 3 items lists &ndash; each list uses letters for numbering, starting with 'B.' and skipping every other letter (<em>e.g.</em> B, D, F)<br>
			3. the last rectangle contains a descending numbered list: it's numbered using roman numerals, starting at X (10), in decreasing order; after the second item there's an inner numbered list with 2 items, again descendingly numbered with roman numerals, starting at 10; finally, before the last item there's another inner numbered list with 2 items, labeled with letters, more precisely, the letters B and D</p>
		<ol id="list1">
			<li>First list, item 1</li>
			<li>First list, item 2</li>
			<li>First list, item 3</li>
			<li>First list, item 4</li>
		</ol>
		<ol id="list21" class="double">
			<li>List 2-1, item B</li>
			<li>List 2-1, item D</li>
			<li>List 2-1, item F</li>
		</ol>
		<ol id="list22" class="double" start="4">
			<li>List 2-2, item B</li>
			<li>List 2-2, item D</li>
			<li>List 2-2, item F</li>
		</ol>
		<ol id="list31" class="down-ten">
			<li>Outer list, item X</li>
			<li>Outer list, item IX
				<ol class="down-ten">
					<li>Inner list 1, item X</li>
					<li>Inner list 1, item IX</li>
				</ol>
			</li>
			<li>Outer list, item VIII</li>
			<li>Outer list, item VII</li>
			<li>Outer list, item VI
				<ol class="double">
					<li>Inner list 2, item B</li>
					<li>Inner list 2, item D</li>
				</ol>
			</li>
			<li>Outer list, item V</li>
		</ol>
		<div class="region" id="region1"></div>
		<div class="region" id="region2"></div>
		<div class="region" id="region3"></div>
	</body>
</html>