mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
LibWeb/CSS: Remove the :target-within
pseudo-class
This has been removed from the spec:
03b340c34f
This commit is contained in:
parent
d9cb8185cc
commit
b973c8d275
Notes:
github-actions[bot]
2025-07-15 19:29:02 +00:00
Author: https://github.com/AtkinsSJ
Commit: b973c8d275
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5459
Reviewed-by: https://github.com/gmta ✅
4 changed files with 0 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue