servo/tests/wpt/css-tests/css-regions-1_dev/html/reference/extract-numbered-spans-display-only-some-ref.htm

33 lines
No EOL
913 B
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Reftest Reference</title>
<link href="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>