Web features explorer

Shadow parts

Widely available
Tags: api css html Groups: CSS > Selectors Web Components

The part and exportparts HTML attributes expose elements of a shadow DOM as named parts, which can be selected by the ::part() CSS pseudo-element for styling. To learn more, see Element: part property, ::part(), exportparts, part at MDN.

Compatibility