ladybird/Tests/LibWeb/Text/input/WebAnimations/misc/animating-all.html
2024-06-02 16:07:12 +02:00

13 lines
374 B
HTML

<!DOCTYPE html>
<script src="../../include.js"></script>
<div id="foo"></div>
<script>
test(() => {
const div = document.getElementById("foo");
div.style.opacity = '0';
const animation = div.animate({ all: 'initial' }, 100);
animation.currentTime = 50
println(`opacity value: ${getComputedStyle(div).opacity}`);
})
</script>