mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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
|
@ -2570,15 +2570,12 @@ void Document::set_target_element(GC::Ptr<Element> element)
|
|||
if (old_target_node_root != new_target_node_root) {
|
||||
if (old_target_node_root) {
|
||||
invalidate_style_for_elements_affected_by_pseudo_class_change(CSS::PseudoClass::Target, m_target_element, *old_target_node_root, element);
|
||||
invalidate_style_for_elements_affected_by_pseudo_class_change(CSS::PseudoClass::TargetWithin, m_target_element, *old_target_node_root, element);
|
||||
}
|
||||
if (new_target_node_root) {
|
||||
invalidate_style_for_elements_affected_by_pseudo_class_change(CSS::PseudoClass::Target, m_target_element, *new_target_node_root, element);
|
||||
invalidate_style_for_elements_affected_by_pseudo_class_change(CSS::PseudoClass::TargetWithin, m_target_element, *new_target_node_root, element);
|
||||
}
|
||||
} else {
|
||||
invalidate_style_for_elements_affected_by_pseudo_class_change(CSS::PseudoClass::Target, m_target_element, *common_ancestor, element);
|
||||
invalidate_style_for_elements_affected_by_pseudo_class_change(CSS::PseudoClass::TargetWithin, m_target_element, *common_ancestor, element);
|
||||
}
|
||||
|
||||
m_target_element = element;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue