Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html class="reftest-wait">
<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-013-ref.html">
<meta name="assert" content="Checks that ::marker is updated when 'list-style-position' changes dynamically.">
<style>
.inside {
list-style-position: inside;
}
.string {
list-style-type: "string";
}
.content::marker {
content: "content";
}
.before, .after {
display: contents;
}
.before::before, .after::after {
content: "item";
display: list-item;
list-style-type: "nested";
}
</style>
<ol class="inside">
<li class="decimal">item</li>
<li class="string">item</li>
<li class="content">item</li>
<li class="before"></li>
<li class="after"></li>
</ol>
<ol class="outside">
<li class="decimal">item</li>
<li class="string">item</li>
<li class="content">item</li>
<li class="before"></li>
<li class="after"></li>
</ol>
<script src="/common/reftest-wait.js"></script>
<script>
"use strict";
addEventListener("load", function() {
requestAnimationFrame(() => {
for (const list of document.querySelectorAll("ol")) {
list.classList.toggle("inside");
list.classList.toggle("outside");
}
takeScreenshot();
});
}, {once: true});
</script>
</html>