Matthew Olsson
62f62a0e52
LibWeb: Correctly set timing function in AnimationEffect::update_timing
...
Also pulls out the parse_easing_string function out since it will be
needed elsewhere
2024-02-25 08:51:50 +01:00
Matthew Olsson
ee63c729e5
LibWeb: Expand shorthand properties in KeyframeEffect
2024-02-25 08:51:50 +01:00
Matthew Olsson
ee4abacde6
LibWeb: Add AnimationEffect::target_properties()
2024-02-22 07:31:54 +01:00
Matthew Olsson
5eea53f27a
LibWeb: Keep track of associated AnimationEffects in Animatable
2024-02-21 19:52:35 +01:00
Matthew Olsson
4e6c74dcf6
LibWeb: Define the composite order between two animations
2024-02-21 19:52:35 +01:00
Matthew Olsson
1d98f812af
LibWeb: Generate KeyframeSet in KeyframeEffect::set_keyframes
...
This is similar to the logic used in StyleComputer (except a bit closer
to the spec), and will eventually be shared between the two.
2024-02-19 12:21:48 +01:00
Matthew Olsson
3c9c134d71
LibWeb: Implement KeyframeEffect::{get,set}_keyframes
2024-02-13 19:44:44 +01:00
Matthew Olsson
38c67ba17c
LibWeb: Implement parsing a monolithic keyframes-like argument
...
See the last commit for a more in-depth explanation
2024-02-13 19:44:44 +01:00
Matthew Olsson
7d69fa0ccf
LibWeb: Partially implement the "process a keyframes argument" procedure
...
Keyframes can be given in two separate forms:
- As an array of separate keyframe objects, where the keys of each
keyframe represent CSS properties, and their values represents the
values that those CSS properties should take
e.x.:
[{ color: 'red', offset: 0.3 }, { color: 'blue', offset: 0.7 }]
- As a single monolithic keyframe object, where the keys of each
keyframe represent CSS properties, and their values are arrays of
values, where each index k represents the value of the given
property at the k'th frame.
e.x.:
{ color: ['red', 'blue'], offset: [0.3, 0.7] }
This commit only implements the first option, as it is much simpler. See
the next commit for the implementation of the second option.
2024-02-13 19:44:44 +01:00
Matthew Olsson
9f404ed9c1
LibWeb: Implement the "compute missing keyframe offsets" procedure
2024-02-13 19:44:44 +01:00
Matthew Olsson
38153b47d6
LibWeb: Implement the "process a keyframe-like object" procedure
2024-02-13 19:44:44 +01:00
Matthew Olsson
a27dd03dcc
LibWeb: Avoid slicing struct in KeyframeEffect::construct_impl
2024-02-06 08:42:07 +01:00
Bastiaan van der Plaat
cf69fd0a09
LibWeb: Add input element valueAsDate property
2024-01-06 09:59:30 -07:00
Andreas Kling
f4fa37afd2
LibJS+LibWeb: Add missing JS_DEFINE_ALLOCATOR() for a bunch of classes
2023-12-23 23:02:10 +01:00
Shannon Booth
96af80acd1
LibWeb: Port Intrinsics from DeprecatedString
2023-11-28 17:15:27 -05:00
Matthew Olsson
95d62822bf
LibWeb: Implement KeyframeEffect::set_pseudo_element
2023-11-14 10:12:02 +01:00
Matthew Olsson
5824916f8c
LibWeb: Add KeyframeEffect IDL objects
2023-11-14 10:12:02 +01:00