mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-27 01:50:24 +00:00
LibWeb: Ignore all pseudo element rules when matching non-pseudo element
This commit is contained in:
parent
4679dbc9df
commit
08a956f544
Notes:
sideshowbarker
2024-07-16 22:22:13 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/08a956f544 Pull-request: https://github.com/SerenityOS/serenity/pull/23634 Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ Vector<MatchingRule> StyleComputer::collect_matching_rules(DOM::Element const& e
|
|||
}
|
||||
} else {
|
||||
for (auto const& rule : rules) {
|
||||
if (filter_namespace_rule(element, rule))
|
||||
if (!rule.contains_pseudo_element && filter_namespace_rule(element, rule))
|
||||
rules_to_run.unchecked_append(rule);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue