LibWeb: Implement matches attribute on CSSSupportsRule and CSSMediaRule

Gains us 4 WPT tests.
This commit is contained in:
Callum Law 2025-07-11 17:09:30 +12:00 committed by Jelle Raaijmakers
commit 1a0d4487a8
Notes: github-actions[bot] 2025-07-11 08:58:53 +00:00
7 changed files with 132 additions and 0 deletions

View file

@ -25,6 +25,8 @@ public:
virtual ~CSSSupportsRule() = default;
String condition_text() const override;
bool matches() const { return condition_matches(); }
virtual bool condition_matches() const override { return m_supports->matches(); }
Supports const& supports() const { return m_supports; }