mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Add infrastructure to match :host.
This commit is contained in:
parent
1654f297ca
commit
9fa2618197
9 changed files with 159 additions and 41 deletions
|
@ -31,6 +31,12 @@ pub trait Element: Sized + Clone + Debug {
|
|||
|
||||
fn parent_element(&self) -> Option<Self>;
|
||||
|
||||
/// Whether the parent node of this element is a shadow root.
|
||||
fn parent_node_is_shadow_root(&self) -> bool;
|
||||
|
||||
/// The host of the containing shadow root, if any.
|
||||
fn containing_shadow_host(&self) -> Option<Self>;
|
||||
|
||||
/// The parent of a given pseudo-element, after matching a pseudo-element
|
||||
/// selector.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue