mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:57:35 +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
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