Files
ladybird/Tests/LibWeb/Text/input/css/math-depth-auto-add-math-style-inherit.html
Callum Law 6373ab68ee LibWeb: Use inherited value of math-style when computing math-depth
The spec calls for us to use the inherited value but we were using our
own value.
2025-08-22 09:48:52 +02:00

26 lines
596 B
HTML

<!DOCTYPE html>
<html>
<body>
<style>
#foo {
math-style: compact;
math-depth: auto-add;
}
#bar {
math-depth: auto-add;
}
</style>
<div id="foo">
<div id="bar"></div>
</div>
<script src="../include.js"></script>
<script>
test(() => {
println("Foo: " + getComputedStyle(foo).mathDepth);
println("Bar: " + getComputedStyle(bar).mathDepth);
});
</script>
</body>
</html>