Matthew Olsson
6859826e3d
LibWeb: Handle persisting an animation after it has been removed
2024-06-02 16:07:12 +02:00
Matthew Olsson
a80af938eb
LibWeb: Support subtree option in Animatable.getAnimations()
2024-06-02 16:07:12 +02:00
Matthew Olsson
e2cb25e35c
LibWeb: Support interpolation of mixed percentage dimension units
2024-06-02 15:12:17 +02:00
Matthew Olsson
1965943026
LibWeb: Reject invalid AnimationEffect duration string values
2024-05-29 08:18:24 +02:00
Matthew Olsson
3e221fbb2d
IDLGenerators: Handle restricted/unrestricted floating point types
2024-05-29 08:18:24 +02:00
Matthew Olsson
2bd8093449
LibWeb: Detect explicit null timeline given in KeyframeAnimationOptions
...
We already do this for the timeline argument in the KeyframeEffect
constructor
2024-05-29 08:18:24 +02:00
Andreas Kling
f4636a0cf5
LibWeb: Stop spamming animation events on the wrong event target
...
This patch fixes two issues:
- Animation events that should go to the target element now do
(some were previously being dispatched on the animation itself.)
- We update the "previous phase" and "previous iteration" fields of
animation effects, so that we can actually detect phase changes.
This means we stop thinking animations always just started,
something that caused each animation to send 60 animationstart
events every second (to the wrong target!)
2024-05-23 12:10:06 +02:00
Shannon Booth
18520561e7
LibWeb: Fix crash for calculated transition duration/delays
...
As the parser was trying to directly unwrap an unresolved duration.
Currently we are outputting the wrong results for the serialized
duration, but this is still a step forwards.
Fixes a crash seen on: https://evaparish.com/blog/how-i-edit
2024-04-06 19:35:27 +01:00
Tim Ledbetter
558fef237c
LibWeb: Use the global object to access the performance object
...
Previously, we were accessing the performance through the current
window object. Thus caused a crash when `animate()` was called on an
element within a document with no associated window object. The global
object is now used to access the performance object in places where
a window object is not guaranteed to exist.
2024-04-02 07:46:16 +02:00
Matthew Olsson
328ad9a2f0
LibWeb: Use InternalAnimationTimeline in existing tests
2024-03-30 19:26:58 +01:00
Matthew Olsson
f0119a818b
LibWeb: Add animation-effect method tests
2024-03-30 19:26:58 +01:00
Matthew Olsson
e298e8af5a
LibWeb: Add some async/animation test utilities
2024-03-30 19:26:58 +01:00
Matthew Olsson
87155c7b1d
LibWeb: Fix infinite loop in CSS::Parser::parse_transition_value()
2024-03-30 07:34:25 +01:00
Matthew Olsson
86bb51d9bf
LibWeb: Add a test for Animation.persist()
2024-03-29 06:59:37 +01:00
Matthew Olsson
c22055941a
LibWeb: Add a test for Animation.reverse()
2024-03-29 06:59:37 +01:00
Matthew Olsson
83d3defc11
LibWeb: Add a test for Animation.updatePlaybackRate()
2024-03-29 06:59:37 +01:00
Matthew Olsson
7d8cf49b25
LibWeb: Add a test for Animation.pause()
2024-03-29 06:59:37 +01:00
Matthew Olsson
074f5429a6
LibWeb: Add a test for Animation.play()
2024-03-29 06:59:37 +01:00
Matthew Olsson
7472536ecb
LibWeb: Add a test for Animation.finish()
2024-03-29 06:59:37 +01:00
Matthew Olsson
d1b30a1bb5
LibWeb: Add a test for Animation.cancel()
2024-03-29 06:59:37 +01:00
Matthew Olsson
d1f35653b1
LibWeb: Use InternalAnimationTimeline in the startTime.html test
2024-03-28 21:08:32 +01:00
Matthew Olsson
7dcd7206d3
LibWeb: Use InternalAnimationTimeline in the playbackRate.html test
2024-03-28 21:08:32 +01:00
Matthew Olsson
dc7a4f907c
LibWeb: Refactor animation-single-iteration-no-repeat test
2024-03-28 21:08:32 +01:00
Matthew Olsson
43b0b3fa80
LibWeb: Add a test to ensure style invalidations don't reset animations
2024-03-26 05:47:09 +01:00
Matthew Olsson
6bf1a30bf5
LibWeb: Add tests for animating unresolved properties
2024-03-20 09:17:33 +01:00
Matthew Olsson
dc47210360
LibWeb: Add tests for the rest of the Animation properties
2024-03-10 15:13:47 +01:00
Matthew Olsson
d7ad134ae5
LibWeb: Add a few Animation property tests
2024-03-09 15:34:27 +01:00