display: contents
Limited availability
The display: contents
CSS declaration sets an element to display only its contents, not itself.
Learning resources on MDN
Browser support (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 Vendor position : positive
- Firefox for Android ❌ See https://bugzil.la/1791648,https://bugzil.la/1553549 Vendor position : positive
- Safari ❌ See webkit.org/b/255149 Vendor position : neutral (concerns: accessibility)
- Safari on iOS ❌ See webkit.org/b/255149 Vendor position : neutral (concerns: accessibility)
Specifications
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature