mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
65 lines
No EOL
2.2 KiB
HTML
65 lines
No EOL
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 p's and div's that use different CSS counters as content in ::after</title>
|
|
<link href="mailto: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 paragraphs and divs with content that use counters behaves as without regions." name="assert" />
|
|
<link href="reference/extract-numbered-paragraphs-divs-002-ref.xht" rel="match" />
|
|
<style>
|
|
#container {
|
|
counter-reset: p 0 d 0;
|
|
}
|
|
#container p,
|
|
#container div {
|
|
flow-into: f1;
|
|
margin: 0;
|
|
}
|
|
#container p,
|
|
#container div {
|
|
counter-increment: p d;
|
|
}
|
|
|
|
#container p::after,
|
|
#container div::after {
|
|
display: block;
|
|
text-align: right;
|
|
border-top: medium solid black;
|
|
font-size: 200%;
|
|
}
|
|
|
|
#container p::after {
|
|
color: red;
|
|
content: counter(p);
|
|
}
|
|
#container div::after {
|
|
color: green;
|
|
content: counter(d);
|
|
}
|
|
|
|
#region {
|
|
width: 20em;
|
|
background-color: lightblue;
|
|
border: 1px solid lightblue;
|
|
flow-from: f1;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- Numbered <p>-s and <div>-s using different counters, displayed as blocks via ::after -->
|
|
<p>Test passes if you see a light blue rectangle below, with eight lines of text in it. Each line of text should be black and with a thick underline. Below and to the right of each line of text you should see the number of that line, colored alternatingly red and green.</p>
|
|
<div id="container">
|
|
<p>This is numbered line of text no. 1</p>
|
|
<div>This is numbered line of text no. 2</div>
|
|
<p>This is numbered line of text no. 3</p>
|
|
<div>This is numbered line of text no. 4</div>
|
|
<p>This is numbered line of text no. 5</p>
|
|
<div>This is numbered line of text no. 6</div>
|
|
<p>This is numbered line of text no. 7</p>
|
|
<div>This is numbered line of text no. 8</div>
|
|
</div>
|
|
<div id="region"></div>
|
|
|
|
|
|
</body></html> |