3 ms·
Think a web component that you want to lay out as two table cells. The component has to be attached to an element, but there's no way to make a single element
by bzbarsky 12y ago
Think a web component that you want to lay out as two table cells. The component has to be attached to an element, but there's no way to make a single element be two table cells right now. With display:contents you make the element the component is attached to display:contents, and give it two display:table-cell kids.