CSS display: contentsExternal Link

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

display: contents causes an element's children to appear as if they were direct children of the element's parent, ignoring the element itself. This can be useful when a wrapper element should be ignored when using CSS grid or similar layout techniques.

IE
Edge
Firefox
Chrome
Safari
Safari iOS
Opera Mini
Chrome Android
Android Browser
Samsung Internet
Globals: 97.36% of all users can use this feature, 12.63% fully supported, 84.73% partially supported
✓Supported
✗Not supported
Partial support
Behind a Flag