servo/tests/wpt/css-tests/css-regions-1_dev/html/reference/extract-numbered-paragraphs-divs-002-ref.htm
Ms2ger 296fa2512b Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180.
- Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
2017-02-06 22:38:29 +01:00

57 lines
No EOL
1.5 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Reftest Reference</title>
<link href="mailto:mibalan@adobe.com" rel="author" title="Mihai Balan">
<style>
#region {
counter-reset: p 0 d 0;
}
#region p,
#region div {
margin: 0;
}
#region p,
#region div {
counter-increment: p d;
}
#region p::after,
#region div::after {
display: block;
text-align: right;
border-top: medium solid black;
font-size: 200%;
}
#region p::after {
color: red;
content: counter(p);
}
#region div::after {
color: green;
content: counter(d);
}
#region {
width: 20em;
background-color: lightblue;
border: 1px solid lightblue;
}
</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="region">
<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>
</body></html>