mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-12 10:40:39 +09:00
LibWeb: Parse CSS :host selector
Let's at least parse it, even if we don't implement matching for it yet.
This commit is contained in:
parent
6acce60393
commit
088cc4ea73
Notes:
sideshowbarker
2024-07-16 22:22:13 +09:00
Author: https://github.com/awesomekling
Commit: 088cc4ea73
5 changed files with 12 additions and 0 deletions
|
@ -245,6 +245,9 @@ static inline bool matches_pseudo_class(CSS::Selector::SimpleSelector::PseudoCla
|
|||
}
|
||||
case CSS::Selector::SimpleSelector::PseudoClass::Type::Root:
|
||||
return is<HTML::HTMLHtmlElement>(element);
|
||||
case CSS::Selector::SimpleSelector::PseudoClass::Type::Host:
|
||||
// FIXME: Implement :host selector.
|
||||
return false;
|
||||
case CSS::Selector::SimpleSelector::PseudoClass::Type::Scope:
|
||||
return scope ? &element == scope : is<HTML::HTMLHtmlElement>(element);
|
||||
case CSS::Selector::SimpleSelector::PseudoClass::Type::FirstOfType:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue