::slotted
::slotted is a CSS property in the Pseudo-elements category. Selects specific parts of elements for styling. The syntax is ::slotted(<selector>) { /* styles */ }. A typical example: ::slotted(span) { font-weight: bold; } It is commonly applied to markup such as <div class="demo">Sample</div> Browser support: Chrome 1+, Firefox 1+, Safari 1+, Edge 12+. A close relative is ::before, which selects specific parts of elements for styling. A close relative is ::after, which selects specific parts of elements for styling. A close relative is ::first-line, which selects specific parts of elements for styling. More about this category: CSS pseudo-elements — ::before, ::after, ::first-line and more. Related Pseudo-elements entries: ::before, ::after, ::first-line, ::first-letter, ::selection, ::placeholder, ::marker, ::backdrop. This page is part of the free CSS Reference documentation covering 841+ properties, selectors, functions, and at-rules, each with syntax, values, examples, and browser support.