mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
If the custom property related to this UnresolvedStyleValue changed we would not reflect the up to date value in the animation.
18 lines
423 B
HTML
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>
|