-
Notifications
You must be signed in to change notification settings - Fork 759
Description
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 fake 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.