Web platform features explorer

display: contents

The display: contents CSS declaration sets an element to display only its contents, not itself.

Status

Limited availability

MDN documentation

Browser support (view on caniuse.com)

Developer votes

Do you need this feature?
Let us know by leaving a 👍 reaction on the feedback issue. Don't forget to also leave a comment explaining your specific use case.