Skip to content

Commit

Permalink
LibWeb: Ignore all pseudo element rules when matching non-pseudo element
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Mar 19, 2024
1 parent 2cc20db commit 323972e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Libraries/LibWeb/CSS/StyleComputer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 323972e

Please sign in to comment.