LibWeb: Remove special handling of all property for animations

There were a couple places that we had special handling for the `all`
property but since d31a58a was merged we can treat it the same as any
other shorthand
This commit is contained in:
Callum Law 2025-10-30 20:28:25 +13:00 committed by Alexander Kalenik
parent 56e2ac8a9d
commit ed0b741a26
Notes: github-actions[bot] 2025-11-02 22:55:35 +00:00
4 changed files with 17 additions and 35 deletions

View file

@ -1314,13 +1314,9 @@ static void compute_transitioned_properties(ComputedProperties const& style, DOM
};
if (property_value->is_keyword()) {
auto keyword = property_value->as_keyword().keyword();
if (keyword == Keyword::None) {
properties.append({});
continue;
}
if (keyword == Keyword::All)
properties_for_this_transition = expanded_longhands_for_shorthand(PropertyID::All);
VERIFY(property_value->to_keyword() == Keyword::None);
properties.append({});
continue;
} else {
auto maybe_property = property_id_from_string(property_value->as_custom_ident().custom_ident());
if (!maybe_property.has_value()) {