mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 20:42:21 +00:00
LibWeb: Handle animating the 'all' property
This commit is contained in:
parent
64ec66e209
commit
e13cd914a9
Notes:
sideshowbarker
2024-07-17 05:03:11 +09:00
Author: https://github.com/mattco98
Commit: e13cd914a9
Pull-request: https://github.com/SerenityOS/serenity/pull/24514
3 changed files with 26 additions and 2 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue