Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-pseudo/marker-content-018.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Test: ::marker pseudo elements styled with 'content' property</title>
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
<link rel="match" href="marker-content-018-ref.html">
<meta name="assert" content="Checks that the 'content' property of a ::marker doesn't affect white space.">
<style>
ol {
float: left;
width: 100px;
}
.inside {
list-style-position: inside;
}
li:nth-child(1)::marker { content: "1" }
li:nth-child(2)::marker { content: "1 " }
li:nth-child(3)::marker { content: "1 " }
li:nth-child(4)::marker { content: " 1" }
li:nth-child(5)::marker { content: " 1" }
li:nth-child(6)::marker { content: " 1 " }
li:nth-child(7)::marker { content: "1\9 2" }
li:nth-child(8)::marker { content: "1\a 2" }
</style>
<ol class="inside">
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
</ol>
<ol class="inside">
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
</ol>
<ol class="outside">
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
</ol>
<ol class="outside">
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
<li> item</li>
</ol>