mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 10:09:14 +00:00
Revert "LibWeb/CSS: Keep invalid parts of <forgiving-selector-list>
s around"
This reverts commit 698dd600f2
.
This caused multiple tests to crash on macOS:
https://github.com/LadybirdBrowser/ladybird/pull/2317#issuecomment-2474725826
This commit is contained in:
parent
698dd600f2
commit
2a5dbedad4
Notes:
github-actions[bot]
2024-11-13 20:39:08 +00:00
Author: https://github.com/awesomekling
Commit: 2a5dbedad4
8 changed files with 3 additions and 110 deletions
|
@ -764,9 +764,6 @@ static inline bool matches(CSS::Selector::SimpleSelector const& component, Optio
|
|||
// :is() is handled already, by us replacing it with :is() directly, so if we
|
||||
// got here, it's :scope.
|
||||
return matches_pseudo_class(CSS::Selector::SimpleSelector::PseudoClassSelector { .type = CSS::PseudoClass::Scope }, style_sheet_for_rule, element, shadow_host, scope, selector_kind);
|
||||
case CSS::Selector::SimpleSelector::Type::Invalid:
|
||||
// Invalid selectors never match
|
||||
return false;
|
||||
}
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue