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-word-spacing.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>::marker supports 'word-spacing'</title>
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com" />
<link rel="match" href="marker-word-spacing-ref.html">
<meta name="assert" content="Checks that ::marker supports 'word-spacing', both explicitly set or inherited from an ancestor">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
float: left;
font: 25px/1 Ahem;
}
.inside {
list-style-position: inside;
width: 250px;
}
.outside {
list-style-position: outside;
width: 100px;
margin-left: 150px;
}
ol {
padding: 0;
}
.word-spacing.explicit ::marker,
.word-spacing.inherit {
word-spacing: 25px;
}
.marker-disc {
list-style-type: disc;
}
.marker-decimal {
list-style-type: decimal;
}
.marker-string {
list-style-type: "X p";
}
.marker-content::marker {
content: "Xp p";
}
</style>
<div class="inside">
<ol class="word-spacing explicit">
<li class="marker-disc">É</li>
<li class="marker-decimal">É</li>
<li class="marker-string">É</li>
<li class="marker-content">É</li>
</ol>
<ol class="word-spacing inherit">
<li class="marker-disc">É</li>
<li class="marker-decimal">É</li>
<li class="marker-string">É</li>
<li class="marker-content">É</li>
</ol>
</div>
<div class="outside">
<ol class="word-spacing explicit">
<li class="marker-disc">É</li>
<li class="marker-decimal">É</li>
<li class="marker-string">É</li>
<li class="marker-content">É</li>
</ol>
<ol class="word-spacing inherit">
<li class="marker-disc">É</li>
<li class="marker-decimal">É</li>
<li class="marker-string">É</li>
<li class="marker-content">É</li>
</ol>
</div>