mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Implement matches attribute on CSSSupportsRule and CSSMediaRule
Gains us 4 WPT tests.
This commit is contained in:
parent
fc395f9824
commit
1a0d4487a8
Notes:
github-actions[bot]
2025-07-11 08:58:53 +00:00
Author: https://github.com/Calme1709
Commit: 1a0d4487a8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5395
Reviewed-by: https://github.com/gmta ✅
7 changed files with 132 additions and 0 deletions
|
@ -24,6 +24,8 @@ public:
|
|||
virtual ~CSSMediaRule() = default;
|
||||
|
||||
virtual String condition_text() const override;
|
||||
bool matches() const { return condition_matches(); }
|
||||
|
||||
virtual bool condition_matches() const override { return m_media->matches(); }
|
||||
|
||||
MediaList* media() const { return m_media; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue