From 204cb7a9c0355cef2d28003d7474578ad5814205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sun, 21 May 2023 21:59:12 +0200 Subject: [PATCH] style: Look at the right element for exportparts in each_applicable_non_document_style_rule_data Otherwise we might not find those rules for invalidation. Differential Revision: https://phabricator.services.mozilla.com/D115130 --- components/style/dom.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/dom.rs b/components/style/dom.rs index 3d088956289..c70a8fd26be 100644 --- a/components/style/dom.rs +++ b/components/style/dom.rs @@ -881,7 +881,7 @@ pub trait TElement: } } // TODO: Could be more granular. - if !shadow.host().exports_any_part() { + if !inner_shadow_host.exports_any_part() { break; } inner_shadow = shadow;