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:
Sam Atkins 2022-03-30 12:05:16 +01:00 committed by Andreas Kling
commit 2aac9f9258
Notes: sideshowbarker 2024-07-17 16:28:22 +09:00
3 changed files with 22 additions and 12 deletions

View file

@ -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();
}