Files
servo/tests/wpt/css-tests/css-regions-1_dev/xhtml1print/extract-list-items-007.xht

54 lines
2.2 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>CSS Test: flow-into on list items from multiple lists that have the "reversed" or "start" HTML attributes set</title>
<link href="mibalan@adobe.com" rel="author" title="Mihai Balan" />
<link href="http://www.w3.org/TR/css3-regions/#properties" rel="help" />
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help" />
<meta content="" name="flags" />
<meta content="The flow-into property can be applied to individual list items. List items extracted in named flows and flowed into regions must preserve their numbering, even when extracting items from multiple and nested lists into the same named flow. The numbering should also honor the HTML 'reversed' and 'start' attribute." name="assert" />
<link href="reference/extract-list-items-007-ref.xht" rel="match" />
<style>
ol ol {
color: blue;
list-style-type: upper-roman;
}
li {
flow-into: f1;
}
#r1 {
flow-from: f1;
}
.region {
margin: 2em;
background-color: lightgray;
width: 20em;
}
</style>
</head>
<body>
<p>This test passes if there is a gray rectangle with a numbered list, as described below.<br />
The numbers for the list should be outside the rectangle and all items should render at the same indentation level.<br />
The second and third items in the list should be blue and numbered using roman numerals, CI and C, respectively. All the other items in the list should be black and numbered with decimal numbers corresponding to the item text.<br />
The final numbering of this list should be: 3, CI, C, 2, 1, 10, 11, 12, 13.</p>
<ol reversed="true">
<li>List item no. 3
<ol start="101" reversed="">
<li>Roman-numbered list item CI</li>
<li>Roman-numbered list item C</li>
</ol>
</li>
<li>List item no. 2</li>
<li>List item no. 1</li>
</ol>
<ol start="10">
<li>List item no. 10</li>
<li>List item no. 11</li>
<li>List item no. 12</li>
<li>List item no. 13</li>
</ol>
<div id="r1" class="region"></div>
</body></html>