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-020.html - WPT Dashboard Interop Dashboard
<!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-020-ref.html">
<meta name="assert" content="Checks that the ::marker is updated when 'content: none' is applied or unapplied dynamically.">
<style>
.no-marker ::marker {
content: none;
}
.inside {
list-style-position: inside;
}
.symbol {
list-style-type: disc;
}
.decimal {
list-style-type: decimal;
}
.string {
list-style-type: "string";
}
.image {
list-style-image: url("/images/green-100x50.png");
}
</style>
<div class="no-marker">
<ol class="inside">
<li class="symbol">inside symbol</li>
<li class="decimal">inside decimal</li>
<li class="string">inside string</li>
<li class="image">inside image</li>
</ol>
<ol class="outside">
<li class="symbol">outside symbol</li>
<li class="decimal">outside decimal</li>
<li class="string">outside string</li>
<li class="image">outside image</li>
</ol>
</div>
<div>
<ol class="inside">
<li class="symbol">inside symbol</li>
<li class="decimal">inside decimal</li>
<li class="string">inside string</li>
<li class="image">inside image</li>
</ol>
<ol class="outside">
<li class="symbol">outside symbol</li>
<li class="decimal">outside decimal</li>
<li class="string">outside string</li>
<li class="image">outside image</li>
</ol>
</div>
<script src="/common/reftest-wait.js"></script>
<script>
"use strict";
addEventListener("load", function() {
requestAnimationFrame(() => {
for (const div of document.querySelectorAll("div")) {
div.classList.toggle("no-marker");
}
takeScreenshot();
});
}, {once: true});
</script>
</html>