2025-03-18 19:28:35 +01:00
|
|
|
<!DOCTYPE html>
|
2023-09-07 15:29:54 +01:00
|
|
|
<script src="../include.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
test(() => {
|
|
|
|
|
println(getComputedStyle(document.getElementById("a")).mathDepth);
|
|
|
|
|
println(getComputedStyle(document.getElementById("b")).mathDepth);
|
|
|
|
|
println(getComputedStyle(document.getElementById("c")).mathDepth);
|
|
|
|
|
println(getComputedStyle(document.getElementById("d")).mathDepth);
|
|
|
|
|
println(getComputedStyle(document.getElementById("e")).mathDepth);
|
|
|
|
|
println(getComputedStyle(document.getElementById("f")).mathDepth);
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
<style>
|
|
|
|
|
body { math-depth: 0; }
|
|
|
|
|
ul > li { math-depth: add(1); }
|
|
|
|
|
</style>
|
|
|
|
|
<body>
|
|
|
|
|
<ul id="a">
|
|
|
|
|
<li id="b"></li>
|
|
|
|
|
<li id="c">
|
|
|
|
|
<ul id="d">
|
|
|
|
|
<li id="e"></li>
|
|
|
|
|
<li id="f"></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</body>
|