Skip to content

Analyze web component selectors #491

@bartveneman

Description

@bartveneman

Pseudo-classes

:defined - matches custom elements that have been defined (registered with customElements.define())
:host - selects the shadow host of the shadow DOM
:host() - selects the shadow host, but only if it matches the selector argument
:host-context() - selects the shadow host if any ancestor matches the selector (deprecated in some browsers)

Pseudo-elements

::slotted() - selects elements that have been placed into a slot from the light DOM
::part() - selects elements within a shadow tree that have a matching part attribute
::shadow (deprecated) - was used to select shadow roots
::content (deprecated) - was used to select distributed nodes in content insertion points

Combinators

/deep/ (deprecated) - was used to pierce shadow boundaries
>>> (deprecated) - shadow-piercing descendant combinator

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions