mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
14 lines
456 B
HTML
14 lines
456 B
HTML
<!doctype html>
|
|
<div id="target"></div>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
let animation = target.animate([{ width: "fit-content(10px)" }, { width: "fit-content(20px)" }], { duration: 1000, fill: "forwards" });
|
|
animation.pause();
|
|
for (let time of [400, 600]) {
|
|
animation.currentTime = time;
|
|
println(target.computedStyleMap().get("width").toString());
|
|
}
|
|
});
|
|
</script>
|