LibWeb: Allow reset-only longhands in coordinating value list shorthands

Required for `animation-timeline` and the various `animation-trigger-*`
properties within the `animation` coordinating value list
This commit is contained in:
Callum Law
2025-11-23 17:35:13 +13:00
committed by Sam Atkins
parent 6bb7224f4e
commit d79aba68d2
Notes: github-actions[bot] 2025-11-28 13:25:46 +00:00
3 changed files with 31 additions and 16 deletions

View File

@@ -448,7 +448,7 @@ private:
using ParseFunction = AK::Function<RefPtr<StyleValue const>(TokenStream<ComponentValue>&)>;
RefPtr<StyleValue const> parse_comma_separated_value_list(TokenStream<ComponentValue>&, ParseFunction);
RefPtr<StyleValue const> parse_simple_comma_separated_value_list(PropertyID, TokenStream<ComponentValue>&);
RefPtr<StyleValue const> parse_coordinating_value_list_shorthand(TokenStream<ComponentValue>&, PropertyID shorthand_id, Vector<PropertyID> const& longhand_ids);
RefPtr<StyleValue const> parse_coordinating_value_list_shorthand(TokenStream<ComponentValue>&, PropertyID shorthand_id, Vector<PropertyID> const& longhand_ids, Vector<PropertyID> const& reset_only_longhand_ids);
RefPtr<StyleValue const> parse_all_as_single_keyword_value(TokenStream<ComponentValue>&, Keyword);
RefPtr<StyleValue const> parse_anchor_name_value(TokenStream<ComponentValue>&);