Files
ladybird/Tests/LibWeb/Text/input/css/animation-changing-custom-property.html
Callum Law 3b8c2a97c0 LibWeb: Don't resolve UnresolvedStyleValues in set_keyframes
If the custom property related to this UnresolvedStyleValue changed
we would not reflect the up to date value in the animation.
2025-08-28 09:29:46 +01:00

18 lines
423 B
HTML

<!DOCTYPE html>
<html>
<div id="foo" style="--foo: red"></div>
<script src="../include.js"></script>
<script>
test(() => {
const anim = foo.animate([{ color: "black" }, { color: "var(--foo)" }], 1000);
foo.style = "--foo: green";
anim.pause();
anim.currentTime = 500;
println(getComputedStyle(foo).color);
});
</script>
</html>