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

Re: [csswg-drafts] [css-tables-3] max-width on table cells (#2802)

From: davidsgrogan via GitHub <sysbot+gh@w3.org>
Date: Sat, 20 Jul 2019 01:29:59 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-513423921-1563586198-sysbot+gh@w3.org>
Blink and FF do different things either for outer max-content width of a table-cell in a **constrained** column, or for max-content width of a column based on cells of span up to 1. In one of those places, FF lets a specified width on one cell override the max-content width of a different cell in the same column.

FF makes below table 75px wide. Chrome makes it 100px. (Akin to first blue table in https://jsfiddle.net/dgrogan/9uduq99L/19/)

    <tr><td style="width:75px;"></td></tr>
      <span style="display: inline-block; width: 50px;"></span><span style="display: inline-block; width: 50px;"></span>

I think chrome's makes more sense in isolation, because it's easy to remember that `width` is just another `min-width` for tables. But combined with the width distribution algorithm, it makes http://jsfiddle.net/dgrogan/hbtm85uk/9/ act in a way I consider weird in chrome and more sensical in FF.

GitHub Notification of comment by davidsgrogan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2802#issuecomment-513423921 using your GitHub account
Received on Saturday, 20 July 2019 01:30:04 UTC

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