Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>CSS Test: intrinsic contribution of ::marker</title>
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
<link rel="match" href="marker-intrinsic-contribution-002-ref.html">
<meta name="assert" content="Checks that that the intrinsic contribution of a ::marker is updated when 'list-style-position' changes.">
<style>
li {
border: 5px solid;
float: left;
clear: left;
}
.inside {
list-style-position: inside;
}
.symbol {
list-style-type: disc;
}
.decimal {
list-style-type: decimal;
}
.string {
list-style-type: "string";
}
.content::marker {
content: "content";
}
</style>
<ol>
<li class="symbol"></li>
<li class="decimal"></li>
<li class="string"></li>
<li class="content"></li>
</ol>
<ol class="inside">
<li class="symbol"></li>
<li class="decimal"></li>
<li class="string"></li>
<li class="content"></li>
</ol>
<script src="/common/reftest-wait.js"></script>
<script>
"use strict";
// Use a "load" event listener and requestAnimationFrame to ensure that
// the markers will have been laid out.
addEventListener("load", function() {
requestAnimationFrame(() => {
for (let list of document.querySelectorAll("ol")) {
list.classList.toggle("inside");
}
takeScreenshot();
});
}, {once: true});
</script>
</html>