Files
ladybird/Tests/LibWeb/Text/input/css/math-depth-relative-lengths-in-calc.html
Callum Law 4efbd0dc4d LibWeb: Support relative lengths in math-depth calcs
As this is computed before font-size we use the parent's length
resolution context.
2025-08-22 09:48:52 +02:00

25 lines
520 B
HTML

<!DOCTYPE html>
<html>
<body>
<style>
#foo {
font-size: 0px;
}
#bar {
font-size: 2px;
math-depth: calc(sign(1em - 1px));
}
</style>
<div id="foo">
<div id="bar"></div>
</div>
<script src="../include.js"></script>
<script>
test(() => {
println(getComputedStyle(bar).mathDepth);
});
</script>
</body>
</html>