mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
LibWeb: Don't crash when an unknown property begins with a single dash
This commit is contained in:
parent
48417152df
commit
f38e07e0c5
Notes:
github-actions[bot]
2025-07-20 06:56:21 +00:00
Author: https://github.com/Gingeh
Commit: f38e07e0c5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5518
3 changed files with 184 additions and 1 deletions
|
@ -1622,7 +1622,7 @@ Optional<StyleProperty> Parser::convert_to_style_property(Declaration const& dec
|
|||
property_id = PropertyID::Custom;
|
||||
} else if (has_ignored_vendor_prefix(property_name)) {
|
||||
return {};
|
||||
} else if (!property_name.bytes_as_string_view().starts_with('-')) {
|
||||
} else {
|
||||
dbgln_if(CSS_PARSER_DEBUG, "Unrecognized CSS property '{}'", property_name);
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue