mirror of
https://github.com/servo/servo
synced 2026-04-28 10:27:40 +02:00
78 lines
3.1 KiB
HTML
78 lines
3.1 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Test: flow-into only on specific list items from multiple lists</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="Test checks that extracting only certain list items from a list into a named flow preseves their numbering and markings both in the region and outside the region." name="assert">
|
|
<link href="reference/extract-list-items-008-ref.htm" rel="match">
|
|
<style>
|
|
ul {
|
|
list-style-type: disc;
|
|
}
|
|
ul ul {
|
|
list-style-type: circle;
|
|
}
|
|
ol {
|
|
list-style-type: decimal;
|
|
}
|
|
ul ol {
|
|
list-style-type: upper-roman;
|
|
}
|
|
|
|
.extract {
|
|
flow-into: f1;
|
|
color: blue;
|
|
}
|
|
.container {
|
|
color: #006400;
|
|
background-color: lightgreen;
|
|
margin: 2em;
|
|
|
|
}
|
|
.region {
|
|
margin: 2em;
|
|
background-color: lightblue;
|
|
}
|
|
#r1 {
|
|
flow-from: f1;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- Individual list items are extracted from ordered/unordered lists. Some of them remain
|
|
in the normal document flow while others are rendered in a region. Both the items that remain
|
|
in the normal flow and items in the named flow should preserve their number/marks just as regions
|
|
were not applied at all. -->
|
|
<p>Test passes if you see two rectangles, one green and one blue, as described below:<br>
|
|
The green rectangle should contain two lists, separated by a small vertical space. The <strong>first list</strong> should be a numbered list starting with 2 that has 2 items; the <strong>second list</strong> should be a bullet list with 3 items, the last one being indented and with a different type of bullet.<br>
|
|
The blue rectangle should contain a list with items numbered/marked in different ways, as follows. Except where noted, the numbers/markers should be <em>outside</em> the the blue rectangle. The <strong>first item</strong> should be numbered with the number 1, in decimal. The <strong>second item</strong> should be bulleted. The <strong>third and fourth items</strong> should be numbered with 2 and 1 respectively, with roman numerals. Also, the <strong>third item</strong> should be indented (with the number inside the blue rectangle). The <strong>fourth and fifth items</strong> should be bulleted, with the <strong>fourth item</strong> having a different kind of bullet than the second and fifth item.
|
|
</p>
|
|
<div class="container">
|
|
<ol>
|
|
<li class="extract">Numbered list, item 1</li>
|
|
<li>Numbered list, item 2</li>
|
|
<li>Numbered list, item 3</li>
|
|
</ol>
|
|
<ul>
|
|
<li>Bullet list, item 1</li>
|
|
<li class="extract">Bullet list, item 2
|
|
<ol>
|
|
<li class="extract">Numbered sub-list, item I</li>
|
|
<li>Numbered sub-list, item II</li>
|
|
</ol>
|
|
</li>
|
|
<li>Bullet list, item 3
|
|
<ul>
|
|
<li class="extract">Bullet sub-list, item 1</li>
|
|
<li>Bullet sub-list, item 2</li>
|
|
</ul>
|
|
</li>
|
|
<li class="extract">Bullet list, item 4</li>
|
|
</ul>
|
|
</div>
|
|
<div id="r1" class="region"></div>
|
|
|
|
|
|
</body></html> |