mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Bring parse_a_declaration()
to spec and add comments
User code now calls `parse_as_supports_condition()` which actually does the conversion to a StyleProperty.
This commit is contained in:
parent
239c36a19e
commit
2aac9f9258
Notes:
sideshowbarker
2024-07-17 16:28:22 +09:00
Author: https://github.com/AtkinsSJ
Commit: 2aac9f9258
Pull-request: https://github.com/SerenityOS/serenity/pull/13361
3 changed files with 22 additions and 12 deletions
|
@ -52,7 +52,7 @@ bool Supports::InParens::evaluate() const
|
|||
|
||||
bool Supports::Declaration::evaluate() const
|
||||
{
|
||||
auto style_property = Parser({}, declaration).parse_as_declaration();
|
||||
auto style_property = Parser({}, declaration).parse_as_supports_condition();
|
||||
return style_property.has_value();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue