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: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Thu, 26 Jul 2018 08:55:37 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-408027316-1532595336-sysbot+gh@w3.org>
Leaving out table-caption was intentional, as it is a block box, and as far as I can tell does not have any special rule that would make applying `contain:size` unusually hard.

CSS2.1 claims:

> The caption boxes are block-level boxes that retain their own content, padding, margin, and border areas, and are rendered as normal block boxes inside the table wrapper box

Is it more special than the spec(s) lead me to believe? Setting an explicit width and height on a table caption, including setting them to smaller than the content and to 0, works just fine as it would on any block box, so I think we're good, but maybe I'm missing something.

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2952#issuecomment-408027316 using your GitHub account
Received on Thursday, 26 July 2018 08:56:10 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 26 July 2018 08:56:15 UTC