mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-31 06:38:22 +00: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:
parent
956d4c381b
commit
aaff6f98b1
Notes:
github-actions[bot]
2025-01-25 23:53:42 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: aaff6f98b1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3365
Reviewed-by: https://github.com/gmta
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue