← Back to release summary

display: contents

Category
CSS
Type
New or changed feature
Status
Enabled by default (Chrome 65)
Intent stage
None

Summary

"display: contents" allows you to control the box generation of an element. The element with "display: contents" won't generate any box, but its children and pseudo-elements will still do it as normal. It's like the element has been replaced by its children and pseudo-elements.

Standards & signals

Samples: https://rachelandrew.co.uk/archives/2016/01/29/vanishing-boxes-with-display-contents/

View on chromestatus.com