From 08a956f54412e9b3b6d81ff30c2802129986d736 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 19 Mar 2024 07:34:00 +0100 Subject: [PATCH] LibWeb: Ignore all pseudo element rules when matching non-pseudo element --- Userland/Libraries/LibWeb/CSS/StyleComputer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp index ca9623b4a0d..9f262690e25 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp @@ -319,7 +319,7 @@ Vector 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); } }