← Back to release summary

Slots in a flat tree

Category
Web Components
Type
New or changed feature
Status
Enabled by default (Chrome 67)
Intent stage
None

Summary

The <slot> element can now participate in a flat (layout) tree, with UA style: display: contents. Before this change, applying a CSS selector to a <slot> element had no effect. Not only is this fixed, when selectors are applied to a <slot> element, it's children inherit its styles.

Standards & signals

View on chromestatus.com