mirror of
https://github.com/servo/servo
synced 2026-04-28 10:27:40 +02:00
50 lines
1.6 KiB
HTML
50 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html><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.htm" 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> |