ladybird/Tests/LibWeb/Ref/input/css/animated-font-size.html
Callum Law dca80ad5eb LibWeb: Account for animated values when computing font
Computing the font for an element in `compute_font` is premature since
we are yet to apply animated properties - instead we should compute the
value on the fly (with a cache to avoid unnecessary work) to ensure we
are respecting the latest values
2025-12-05 10:03:15 +00:00

9 lines
332 B
HTML

<!DOCTYPE html>
<link rel="match" href="../../expected/css/animated-font-size-ref.html" />
<div id="foo" style="font-size: 10px">TEST</div>
<script>
const anim = foo.animate([{ fontSize: "10px" }, { fontSize: "20px" }], 1000);
anim.pause();
anim.currentTime = 500;
document.documentElement.classList = "";
</script>