mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
50 lines
1.7 KiB
HTML
50 lines
1.7 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 ordered and unordered list items</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 list markers and numbering." name="assert" />
|
|
<link href="reference/extract-list-items-001-ref.xht" rel="match" />
|
|
<style>
|
|
ul > li {
|
|
flow-into: uflow;
|
|
}
|
|
#r1 {
|
|
flow-from: uflow;
|
|
}
|
|
ol > li {
|
|
flow-into: oflow;
|
|
}
|
|
#r2 {
|
|
flow-from: oflow;
|
|
}
|
|
.region {
|
|
width: 200px;
|
|
background-color: lightgray;
|
|
margin: 1em 2em;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>This test passes if there are two gray rectangles, each with a 4 items list in it.<br />
|
|
The first list should not be numbered and the second should be numbered, starting at 1.<br />
|
|
Both the list markers for the first list and the numbers for the second list should be outside of the gray rectangles.
|
|
</p>
|
|
<ul>
|
|
<li>Unordered list, item 1</li>
|
|
<li>Unordered list, item 2</li>
|
|
<li>Unordered list, item 3</li>
|
|
<li>Unordered list, item 4</li>
|
|
</ul>
|
|
<ol>
|
|
<li>Ordered list, item 1</li>
|
|
<li>Ordered list, item 2</li>
|
|
<li>Ordered list, item 3</li>
|
|
<li>Ordered list, item 4</li>
|
|
</ol>
|
|
<div class="region" id="r1"></div>
|
|
<div class="region" id="r2"></div>
|
|
|
|
</body></html> |