LibWeb: Handle animating the 'all' property

This commit is contained in:
Matthew Olsson 2024-05-31 09:01:27 -07:00 committed by Andreas Kling
commit e13cd914a9
Notes: sideshowbarker 2024-07-17 05:03:11 +09:00
3 changed files with 26 additions and 2 deletions

View file

@ -0,0 +1,13 @@
<!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>