W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2019

Re: [csswg-drafts] [css-display] Make `table-caption` and `table-cell` <display-outside> values (#3940)

From: Mats Palmgren via GitHub <sysbot+gh@w3.org>
Date: Mon, 26 Aug 2019 16:44:25 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-524934823-1566837864-sysbot+gh@w3.org>
In a sub-tree of boxes making up a table, the `table-caption/cell` boxes are leaves, so they can easily have arbitrary layout _inside_ them without affecting any "table layout".

Other table-internal values can't have arbitrary layout inside them without fundamentally changing what a table is. Imagine for example a `display:table-row flex`. This box would lay out its children using flexbox layout so they would not be "table cells" at all and the table's columns would be meaningless on this row. (It'd be kind of a "`column-span:all`" box but for tables.) And for `<td>/<th>` children inside that block, we'll create a `row/row-group/table` wrapper for them unless the author also changed their `display`. You also get tricky issues like what does `rowspan=2` mean if the second row has flex layout inside? While it might be possible to specify all this and implement it, I doubt it would be worth the effort.

@FremyCompany Not sure I understood your question correctly though.  Please elaborate on the concrete syntax you're suggesting if I misunderstood.

-- 
GitHub Notification of comment by MatsPalmgren
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3940#issuecomment-524934823 using your GitHub account
Received on Monday, 26 August 2019 16:44:27 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:52 UTC