mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-25 12:32:53 +00:00
LibWeb/CSS: Align declaration block parsing with the spec
We have two different code paths that implement the "parse a CSS declaration block" algorithm, for properties and descriptors. COmbining them isn't straightforward, and doesn't seem especially useful.
This commit is contained in:
parent
8a20899382
commit
fa8bbfa6a5
Notes:
github-actions[bot]
2025-04-23 10:40:21 +00:00
Author: https://github.com/AtkinsSJ
Commit: fa8bbfa6a5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4354
5 changed files with 52 additions and 38 deletions
|
@ -1216,7 +1216,7 @@ void CSSStyleProperties::set_declarations_from_text(StringView css_text)
|
|||
auto parsing_params = owner_node().has_value()
|
||||
? Parser::ParsingParams(owner_node()->element().document())
|
||||
: Parser::ParsingParams();
|
||||
auto style = parse_css_style_attribute(parsing_params, css_text);
|
||||
auto style = parse_css_property_declaration_block(parsing_params, css_text);
|
||||
set_the_declarations(style.properties, style.custom_properties);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue