I read other posts on SO about the matter but before you all start yelling at me just use tables for tabular data!
let me say that this is an attempt to solve specific <table/>
problems:
having a scrollable tbody: mandatory for big data and virtual scrolling
have the thead columns and tbody columns auto-adjust with the best fit based on the cell contents (not all equally-wide and without manually specifying width on each of them): which you now loose once you declare
display:block
the tbody
I was trying to leverage the display:contents
or display:subgrid
(ff and chrome with experimental flags enabled) for this.
Is what I'm trying to achieve even possible?
In my attempt I'm posting here:
I'm loosing the chance to set an height on my tbody because of the
display:contents
which let the children behave direct children of the container parent (table)I'm not sure whether I can nest
display:contents
elements
Here the snippet: https://codepen.io/anon/pen/ppWwKv
Other references: