servo/tests/wpt/css-tests/css-regions-1_dev/html/reference/extract-numbered-spans-display-only-some-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

34 lines
No EOL
921 B
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Reftest Reference</title>
<link href="mailto:mibalan@adobe.com" rel="author" title="Mihai Balan">
<style>
span {
counter-increment: spans 1;
}
#region {
counter-reset: spans 0;
}
span::before {
display: inline-block;
content: counter(spans) ".";
width: 2em;
margin: 0 .5em;
background: green;
color: white;
text-align: center;
}
#region {
background-color: lightblue;
}
</style>
</head>
<body>
<p>Test passes if you see a light blue rectangle below, with three blocks of black text on a single line. Each block of text should be numbered from 1 to 3 and contain the text “Visible text <em>n</em>” with <em>n</em> ranging from 1 to 3. The numbering should be white on a green background.</p>
<div id="region">
<span>Visible text 1</span><span>Visible text 2</span><span>Visible text 3</span>
</div>
</body></html>