mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Implement disallowing inset
when parsing shadows
`text-shadow` does not support this, so this way we can still use the same parsing code. It's OK that we still assign a ShadowPlacement value to the ShadowStyleValue, since it will just get ignored when painting text-shadows, but if it appears in the property value then that is a syntax error.
This commit is contained in:
parent
1094654adc
commit
f078bb8294
Notes:
sideshowbarker
2024-07-17 16:49:50 +09:00
Author: https://github.com/AtkinsSJ
Commit: f078bb8294
Pull-request: https://github.com/SerenityOS/serenity/pull/13234
2 changed files with 13 additions and 8 deletions
|
@ -294,8 +294,12 @@ private:
|
|||
RefPtr<StyleValue> parse_font_family_value(Vector<StyleComponentValueRule> const&, size_t start_index = 0);
|
||||
RefPtr<StyleValue> parse_list_style_value(Vector<StyleComponentValueRule> const&);
|
||||
RefPtr<StyleValue> parse_overflow_value(Vector<StyleComponentValueRule> const&);
|
||||
RefPtr<StyleValue> parse_shadow_value(Vector<StyleComponentValueRule> const&);
|
||||
RefPtr<StyleValue> parse_single_shadow_value(TokenStream<StyleComponentValueRule>&);
|
||||
enum class AllowInsetKeyword {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
RefPtr<StyleValue> parse_shadow_value(Vector<StyleComponentValueRule> const&, AllowInsetKeyword);
|
||||
RefPtr<StyleValue> parse_single_shadow_value(TokenStream<StyleComponentValueRule>&, AllowInsetKeyword);
|
||||
RefPtr<StyleValue> parse_text_decoration_value(Vector<StyleComponentValueRule> const&);
|
||||
RefPtr<StyleValue> parse_transform_value(Vector<StyleComponentValueRule> const&);
|
||||
RefPtr<StyleValue> parse_transform_origin_value(Vector<StyleComponentValueRule> const&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue