mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
18 lines
601 B
HTML
18 lines
601 B
HTML
<!doctype html>
|
|
<div id="target"></div>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
target.style.width = "fit-content(5px)";
|
|
let animation = target.animate([
|
|
{ offset: 0, composite: "add", width: "fit-content(5px)" },
|
|
{ offset: 1, composite: "add", width: "fit-content(15px)" },
|
|
], { duration: 1000, fill: "forwards" });
|
|
animation.pause();
|
|
for (let time of [0, 500, 1000]) {
|
|
animation.currentTime = time;
|
|
println(target.computedStyleMap().get("width").toString());
|
|
}
|
|
});
|
|
</script>
|