[csswg-drafts] [css-tables] Display: sub-row (#5316)

Crissov has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-tables] Display: sub-row ==
Table cells that wrap inside because they can have a lot of textual content, e. g. in columns labeled _Notes_ or _Comment_, are a common problem in data tables which otherwise tend to have narrow columns. To deal with this in responsive layouts that must work on narrow screens without horizontal scrolling or in printouts, some designers do not use HTML tables and the CSS layout model informed by them, but take it with different elements and `display` values.

I think a new value `table-sub-row` could deal with a lot of use cases: it would default to the same behavior as `table-cell`, but if its content needed to wrap and its height would therefore become greater than its parent `table-row`, it would instead display like a single cell spanning all columns in a new display row after the current one.

It becomes more complicated to specify, of course, if multiple cells in a row have this display value and if they should be able to share horizontal space by automatically distributing the available width. I think, though, that it is quite doable if every sub-row just spans the complete width. 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5316 using your GitHub account

Received on Monday, 13 July 2020 16:06:12 UTC