display: contents
Limited availability
The display: contents
CSS declaration sets an element to display only its contents, not itself.
To learn more, see
<display-box> at MDN.
Compatibility (view on caniuse.com)
- Chrome ❌ See crbug.com/40866683
- Chrome Android ❌ See crbug.com/40866683
- Edge ❌ See crbug.com/40866683
- Firefox ❌ See https://bugzil.la/1791648,https://bugzil.la/1553549
- Firefox for Android ❌ See https://bugzil.la/1791648,https://bugzil.la/1553549
- Safari ❌ See webkit.org/b/255149
- Safari on iOS ❌ See webkit.org/b/255149