mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
selectors: Never match ::slotted on <slot>s.
This fixes the test from https://github.com/w3c/web-platform-tests/pull/9212 in Gecko.
This commit is contained in:
parent
bc7dd644f6
commit
61e60a87e5
7 changed files with 36 additions and 7 deletions
|
@ -82,6 +82,9 @@ pub trait Element: Sized + Clone + Debug {
|
|||
/// Whether this element is a `link`.
|
||||
fn is_link(&self) -> bool;
|
||||
|
||||
/// Returns whether the element is an HTML <slot> element.
|
||||
fn is_html_slot_element(&self) -> bool;
|
||||
|
||||
/// Returns the assigned <slot> element this element is assigned to.
|
||||
///
|
||||
/// Necessary for the `::slotted` pseudo-class.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue