W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2018

Re: [csswg-drafts] [css-contain-1] maybe 'contain-size' shouldn't apply to display:table-caption?

From: L. David Baron via GitHub <sysbot+gh@w3.org>
Date: Thu, 26 Jul 2018 21:43:08 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-408244330-1532641387-sysbot+gh@w3.org>
I think the issue is that in many cases the `table-caption`'s size interacts with the `table`'s size, much like the sizes of table parts interact with each other.  In other words, the width of the table definitely causes the caption's width to increase (Firefox and Chrome); vice-versa the caption's contents cause the table's width to increase in Chrome but not Firefox.  (Play with adding widths to [this testcase](http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cstyle%3E%0Acaption%20%7B%20background%3A%20yellow%7D%0Atd%20%7B%20background%3A%20aqua%20%7D%0A%3C%2Fstyle%3E%0A%3Ctable%3E%0A%20%20%3Ccaption%3E%0A%20%20%20%20caption%0A%20%20%3C%2Fcaption%3E%0A%20%20%3Ctr%3E%3Ctd%3Ecell%3Ctd%3Ecell%0A%3C%2Ftable%3E).)

(I think this doesn't happen with `top-outside` and `bottom-outside` captions which represent the CSS 2.0 `top` and `bottom` rather than their redefinition in 2.1... and which we agreed to add for implementations (Gecko) that had actually implemented the 2.0 definitions... but I haven't tested.)

-- 
GitHub Notification of comment by dbaron
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2952#issuecomment-408244330 using your GitHub account
Received on Thursday, 26 July 2018 21:43:11 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 26 July 2018 21:43:11 UTC