The CSSWG has an issue open on the naming of the ::content pseudo-element being too general for its ShadowDOM-specific use. We would like to poll authors on their preferences.
What this pseudo-element does is, it allows selecting items that have been pulled in from the light DOM and projected through the shadow tree.
<div id=web-component>
<p class=normal>I’m a normal child! I’m hidden because there’s a shadow root attached to the component.</p>
<p class=selected>I’m another child. I’m shown because the shadow root selects me.</p>
</div>
<::shadow> /* attached to #web-component */
<p class=shadow>I’m in the shadow tree. I get shown, along with whatever the <content> element selects.</p>
<content select="p.selected"></content>
<style>
p { color: blue; } /* styles only the p.shadow element */
::content p { color: green; } /* styles only the p.selected element */
</style>
</::shadow>
The three options under consideration are:
::content
::light-content
::projected