Files
ladybird/Tests/LibWeb/Text/input/css/math-depth-maintain-property-flags.html
Callum Law 27dd77a538 LibWeb: Don't store resolved math depth directly
There's no need to store this twice

We also now use `set_property_without_modifying_flags` to avoid
overwriting inherited/important flags
2026-01-15 12:03:16 +00:00

26 lines
507 B
HTML

<!DOCTYPE html>
<html>
<style>
#foo {
math-depth: 1;
}
#bar {
math-depth: inherit;
}
</style>
<div id="foo">
<div id="bar"></div>
</div>
<script src="../include.js"></script>
<script>
promiseTest(async () => {
await animationFrame();
await animationFrame();
foo.style.mathDepth = "2";
println(getComputedStyle(bar).mathDepth);
});
</script>
</html>