-
-
Notifications
You must be signed in to change notification settings - Fork 14
Description
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