mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
LibWeb: Expand shorthand properties in CSS @keyframes
This commit is contained in:
parent
05e78dabdb
commit
aca32e298d
Notes:
sideshowbarker
2024-07-17 17:40:13 +09:00
Author: https://github.com/mattco98
Commit: aca32e298d
Pull-request: https://github.com/SerenityOS/serenity/pull/23379
Issue: https://github.com/SerenityOS/serenity/issues/23367
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 5 additions and 3 deletions
|
@ -1956,9 +1956,11 @@ NonnullOwnPtr<StyleComputer::RuleCache> StyleComputer::make_rule_cache_for_casca
|
|||
continue;
|
||||
|
||||
auto const& keyframe_style = static_cast<PropertyOwningCSSStyleDeclaration const&>(*keyframe_rule);
|
||||
for (auto const& property : keyframe_style.properties()) {
|
||||
animated_properties.set(property.property_id);
|
||||
resolved_keyframe.resolved_properties.set(property.property_id, property.value);
|
||||
for (auto const& it : keyframe_style.properties()) {
|
||||
for_each_property_expanding_shorthands(it.property_id, it.value, [&](PropertyID shorthand_id, StyleValue const& shorthand_value) {
|
||||
animated_properties.set(shorthand_id);
|
||||
resolved_keyframe.resolved_properties.set(shorthand_id, NonnullRefPtr<StyleValue const> { shorthand_value });
|
||||
});
|
||||
}
|
||||
|
||||
keyframe_set->keyframes_by_key.insert(key, resolved_keyframe);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue