mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Fix collection of pseudo class names used in :has()
Before this change we were saving all pseudo class names as used in :has() regardless of whether they are nested inside :has() or not.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
956d4c381b
commit
aaff6f98b1
Notes:
github-actions[bot]
2025-01-25 23:53:42 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/aaff6f98b1b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3365 Reviewed-by: https://github.com/gmta
@@ -71,7 +71,8 @@ static void collect_properties_used_in_has(Selector::SimpleSelector const& selec
|
||||
case PseudoClass::Disabled:
|
||||
case PseudoClass::PlaceholderShown:
|
||||
case PseudoClass::Checked:
|
||||
style_invalidation_data.pseudo_classes_used_in_has_selectors.set(pseudo_class.type);
|
||||
if (in_has)
|
||||
style_invalidation_data.pseudo_classes_used_in_has_selectors.set(pseudo_class.type);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user