diff --git a/components/style/data.rs b/components/style/data.rs index 56f2de5beb6..56efedc41f0 100644 --- a/components/style/data.rs +++ b/components/style/data.rs @@ -262,6 +262,8 @@ impl ElementData { } let mut xbl_stylists = SmallVec::<[_; 3]>::new(); + // FIXME(emilio): This is wrong, needs to account for ::slotted rules + // that may apply to elements down the tree. let cut_off_inheritance = element.each_applicable_non_document_style_rule_data(|data, quirks_mode| { xbl_stylists.push((data, quirks_mode)) diff --git a/components/style/invalidation/element/invalidator.rs b/components/style/invalidation/element/invalidator.rs index 14aa084a1b0..3e2866ddca8 100644 --- a/components/style/invalidation/element/invalidator.rs +++ b/components/style/invalidation/element/invalidator.rs @@ -505,6 +505,9 @@ where DescendantInvalidationKind::Slotted, ); + // FIXME(emilio): Need to handle nested slotted nodes if `element` + // is itself a . + debug_assert!( sibling_invalidations.is_empty(), "::slotted() shouldn't have sibling combinators to the right, \