Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
[css-tables] How replaced elements are handled when receiving a table-* display type #508
Comments
gregwhitworth
added the
css-tables-3
label
Sep 21, 2016
|
Supersedes #398 |
gregwhitworth
referenced
this issue
Nov 11, 2016
Closed
[css-tables] Table fixup and replaced elements #470
|
Here is the testcase linked in 470: https://rawgit.com/w3c/csswg-test/css-tables/work-in-progress/microsoft/css-tables/table-model-fixup-2.html |
|
It might be preferable to use a should not rather than a must not for the author requirement; I think we've shied away from using must-level requirements on authors, since we know they're not actually going to be honored. I think the "like if they never had any other display type" is ambiguous as to which "other" it's referring to: does it mean the I'm curious if you have data on how well this matches existing implementations. (E.g., do they follow this block/inline distinction, and do they follow these rules for anonymous box generation and whitespace collapsing?) |
|
Here is an excel spreadsheet I made: You can repro (or try variants) using this gist: |
|
As far as I can remember, I found out that in all browsers, consecutive |
|
Reporting back after having a look at the code. Our behavior was changed in Edge from returning The spirit was that replaced elements except form fields should behave as block, and form fields elements as inline. It doesn't make much sense to me that table-row wouldn't be a block on an input or that table-cell might be a block on some other elements, but I would be fine to change the spec to match it if this is what people believe is best. That would still leave What do you think? |
gregwhitworth
added a commit
that referenced
this issue
Nov 16, 2016
|
|
gregwhitworth |
13d1dd0
|
|
Ok, so I've made the small editorial change for the author advisement. That last line is quite confusing since we're saying, actually we're just going to set them to an inline or block, but then never get around to describing those implications. My assumption is that fixup and whitespace collapsing will work as normal following what is specified, but the the layout of the box itself will be that of inline or block; is this correct? |
|
The proposal would be to work as if the box had display:block instead of display:table-xyz; there would be no visible effect that display was specified to table-xyz (the computed value of the property should be block, I guess, or at least the used value). |
FremyCompany
added the
Agenda+ F2F
label
Jul 19, 2017
|
Summary of the discussion
Face to face recommendation:
Examples: |
Some people dislike them, but I still use them; the intent of must vs should is still clear, even if we know many authors will do it anyway. |

gregwhitworth commentedSep 21, 2016
•
edited
We have changed the spec from 2.1 regarding replaced elements as no browser currently allows this. Here is the spec text regarding this change: