Re: [csswg-drafts] [css-tables] excess width distribution in fixed layout mode

The sizing difference of 2px is not due to the excess width distribution (everything is distributed to the second column in both browsers). It is actually due to the cellpadding of 1px. 157px + 1px * 2 = 159px. It looks like Firefox does not have the following rule from the spec implemented;
> Cells ignore their border and padding size if their width is a percentage (box-sizing is ignored)

In Firefox, if you set a 10px cell padding, then the first cell will be 20px bigger than 50% of the table. I will still be 50% of the table in Edge. Edge's behavior is consistent with what is being done in auto mode.

Well, except that in auto mode the cell padding will still be counted for the minimum width of the cell, but there is no such thing in fixed mode (the whole point being that cell's content should not influence track size so that you can be fast). In the spec that is:
> The minimum width of percent-columns and auto-columns is considered to be zero

-- 
GitHub Notification of comment by FremyCompany
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/484#issuecomment-317943064 using your GitHub account

Received on Wednesday, 26 July 2017 04:18:29 UTC