mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 13:50:00 +00:00
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
9 lines
332 B
HTML
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>
|