diff options
Diffstat (limited to 'components/selectors/tree.rs')
-rw-r--r-- | components/selectors/tree.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/selectors/tree.rs b/components/selectors/tree.rs index d050c23a470..7a83feb83d0 100644 --- a/components/selectors/tree.rs +++ b/components/selectors/tree.rs @@ -84,6 +84,13 @@ pub trait Element: Sized + Clone + Debug { /// Whether this element is a `link`. fn is_link(&self) -> bool; + /// Returns the assigned <slot> element this element is assigned to. + /// + /// Necessary for the `::slotted` pseudo-class. + fn assigned_slot(&self) -> Option<Self> { + None + } + fn has_id(&self, id: &<Self::Impl as SelectorImpl>::Identifier, case_sensitivity: CaseSensitivity) |