File: extract-list-items-012.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 (89 lines) | stat: -rw-r--r-- 5,485 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
<!DOCTYPE html>
<html>
	<head>
		<title>CSS Test: flow-into on individual list items preserves other list styling properties (list-style-*)</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="Test checks that list styling properties are honored even for list items extracted in named flows and rendered in regions.">
		<link rel="match" href="reference/extract-list-items-012-ref.html">
		<style>
		#first {
			list-style-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS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34NBIyoAFKOxAygJHS7AwQYAAt068AjhXk+gAAAABJRU5ErkJggg==);
			list-style-position: inside;
		}
		#second {
			list-style-type: square;
			list-style-position: outside;
		}
		#third {
			list-style-type: upper-roman;
			list-style-position: inside;
		}
		#third li {
			font-weight: bold;
		}
		#third li span {
			font-weight: normal;
		}
		#inner {
			list-style-type: upper-alpha;
		}
		.container {
			color: #006400;
			background-color: lightgreen;
			margin: 2em;
			float: left;
			width: 20em;
			height: 20em;
		}
		li:last-child {
			flow-into: f1;
			color: blue;
		}
		.region {
			margin: 2em;
			background-color: lightblue;
			float: left;
			width: 20em;
			height: 20em;
		}
		#r1 {
			flow-from: f1;
		}
		</style>
	</head>
	<body>
		<!-- Setting different values for list-style-position, list-style-type, list-style-image and
		then extracting individual list items into named flows. Numbering shouldn't be affected, as
		shouldn't indenting and marker boxes positioning. -->
		<p>Test passes if you see two rectangles, one green and one blue, as described below. Except where noted, all list items should be rendered on two lines.<br>
		The green rectangle should contain three lists, separated by a small vertical space, each with two items. The <strong>first list</strong> should use a triangle-shaped bullet and the text on the second line should start below the bullet. The <strong>second list</strong> should use a square-shaped bullet and the text on the second line should not come under the bullet. The <strong>third list</strong> should be numbered with roman numerals starting with 20 (XX) and the text on the second line should start below the number.<br>
		The blue rectangle should contain a list with items numbered/marked in different ways, as follows. The <strong>first item</strong> should use a triangle-shaped bullet and the text on the second line should start below the bullet. The <strong>second item</strong> should use a square-shaped bullet and the bullet should be outside of the blue rectangle. The <strong>third and fourth items</strong> should be one-line and numbered with letters A and B respectively. The third item should be indented while the fourth item should have the number outside the blue rectangle. The <strong>fifth item</strong> should be numbered with the roman numeral 22 (XXII) and the text on the second line should start below the number.</p>

		<div class="container">
			<ul id="first">
				<li>Custom bullet list, item 1<br><em>Another line of text here</em></li>
				<li>Custom bullet list, item 2<br><em>Another line of text here</em></li>
				<li>Custom bullet list, item 3<br><em>Another line of text here</em></li>
			</ul>
			<ul id="second">
				<li>Square bullet list, item 1<br><em>Another line of text here</em></li>
				<li>Square bullet list, item 2<br><em>Another line of text here</em></li>
				<li>Square bullet list, item 3<br><em>Another line of text here</em>
					<ol id="inner">
						<li>Inner ordered list, item A</li>
						<li>Inner ordered list, item B</li>
					</ol>
				</li>
			</ul>
			<ol start="20" id="third">
				<li><span>Roman numbered list, item XX<br><em>Another line of text here</em></span></li>
				<li><span>Roman numbered list, item XXI<br><em>Another line of text here</em></span></li>
				<li><span>Roman numbered list, item XXII<br><em>Another line of text here</em></span></li>
			</ol>
		</div>
		<div class="region" id="r1"></div>
	</body>
</html>