:host(:has(…))Selects a shadow host based on its light DOM descendants.
:has-slotted pseudo-classMatches <slot> elements that have slotted content, rather than showing fallback content.
Allows elements in shadow trees to reference anchor names defined in "higher" trees.
TemporalA modern and extensive date/time API to replace Date.
import … with { type: "css" } to load CSS resources as constructable stylesheets.
referenceTargetForwards IDrefs (such as for and aria-labelledby) to an element inside a shadow root.
<select>Customize the button, selected option, picker, and options with CSS.
@container anchored(fallback: …) applies styles based on which position fallback an anchor-positioned element is using.
if() functionAn inline conditional value that returns a value based on a set of conditions.
@functionDefines custom functions that take arguments and return a CSS value.
Anchor-positioned elements track transforms on their anchors, and changes to the calculated anchor() triggers transitions.
scroll(), scrollTo(), scrollBy(), and scrollIntoView() return promises that resolve when scrolling completes.
The interestfor attribute triggers actions on a target element when the user shows interest, such as via hover, focus, or long-press.
document.parseHTML() and element.setHTML()Customizes the sanitization of HTML inserted into the DOM, to prevent cross-site scripting attacks.