display: contents
Limited availability
The display: contents CSS declaration sets an element to display only its contents, not itself.
Browser support (view on caniuse.com)
- Chrome Not supported Bugs: 40866683
- Chrome Android Not supported Bugs: 40866683
- Edge Not supported Bugs: 40866683
- Firefox Not supported Position: positive Bugs: 1791648 1553549
- Firefox for Android Not supported Position: positive Bugs: 1791648 1553549
- Safari Not supported Position: neutral (concerns: accessibility) Bugs: 255149
- Safari on iOS Not supported Position: neutral (concerns: accessibility) Bugs: 255149
Need this feature?
Leave a 👍 on the feedback issue
Don't forget to also leave a comment explaining your specific use case.
MDN documentation
Specifications
Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist