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;