mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
57 lines
No EOL
1.6 KiB
HTML
57 lines
No EOL
1.6 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 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> |