LibWeb/CSS: Remove the :target-within pseudo-class

This has been removed from the spec:

03b340c34f
This commit is contained in:
Sam Atkins 2025-07-15 14:38:52 +01:00 committed by Jelle Raaijmakers
commit b973c8d275
Notes: github-actions[bot] 2025-07-15 19:29:02 +00:00
4 changed files with 0 additions and 13 deletions

View file

@ -803,12 +803,6 @@ static inline bool matches_pseudo_class(CSS::Selector::SimpleSelector::PseudoCla
}
case CSS::PseudoClass::Target:
return element.is_target();
case CSS::PseudoClass::TargetWithin: {
auto* target_element = element.document().target_element();
if (!target_element)
return false;
return element.is_inclusive_ancestor_of(*target_element);
}
case CSS::PseudoClass::Dir: {
// "Values other than ltr and rtl are not invalid, but do not match anything."
// - https://www.w3.org/TR/selectors-4/#the-dir-pseudo