You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css-display][css-tables-3] Do table captions participate in BFC or TFC? #1189
The element generates a principal table wrapper box containing an additionally-generated table box, and establishes a table formatting context.
It's not much clear if what establishes the TFC is the table wrapper box. The sentence sounds like it's the element, but I believe formatting contexts established in the box tree, not the element tree. So probably it's the table wrapper box or the table box.
table-row-group, table-header-group, table-footer-group, table-row, table-cell, table-column-group, table-column, table-caption
The element is an internal table element, and participates in a table layout context.
Which is it, does the caption participate in a BFC or in a TFC? What establishes the TFC, the table wrapper box or the table box?
Since captions can't exist outside a table wrapper box (they generate an anonymous one if necessary), I think they should participate in a TFC, which would be established by the table wrapper box.
You can't get a float to invade captions in any browser as far as I can remember. So that would be the table wrapper box.
But then again I still do not believe this wrapper-box mumbo-jumbo has any actual usefulness and the concept should just be removed. That would make both sentences actually valid in this case. The table wrapper box would be equal to the table box and would be a formatting context, and table-caption would participate in that formatting context.
Only if you commit to the existence of the table wrapper box. No browser behaves like if there was one in this case. And it is not the only example, there is an almost infinite stream of those. The concept is just buggy.
But, to be fair, in the absence of a resolution to remove the concept, the bug is in CSS Display and in all browsers.
Yes, now it's consistent with CSS 2.1 and CSS tables. But if Fremy is going to change this in CSS tables because it's not consistent with implementations, maybe you could add a note warning about the possible change?
Activity
FremyCompany commentedon Apr 16, 2017
You can't get a float to invade captions in any browser as far as I can remember. So that would be the table wrapper box.
But then again I still do not believe this wrapper-box mumbo-jumbo has any actual usefulness and the concept should just be removed. That would make both sentences actually valid in this case. The table wrapper box would be equal to the table box and would be a formatting context, and table-caption would participate in that formatting context.
Loirooriol commentedon Apr 16, 2017
If you can rewrite the CSS Table spec without the table wrapper box oddity, it would be great. Thanks!
fantasai commentedon Apr 18, 2017
This is a bug in Display.
FremyCompany commentedon Apr 18, 2017
Only if you commit to the existence of the table wrapper box. No browser behaves like if there was one in this case. And it is not the only example, there is an almost infinite stream of those. The concept is just buggy.
But, to be fair, in the absence of a resolution to remove the concept, the bug is in CSS Display and in all browsers.
fantasai commentedon May 15, 2017
We've fixed the errors in Display to be consistent with the model in CSS2.1. Please let us know if there is any remaining incorrectness.
Loirooriol commentedon May 15, 2017
Yes, now it's consistent with CSS 2.1 and CSS tables. But if Fremy is going to change this in CSS tables because it's not consistent with implementations, maybe you could add a note warning about the possible change?
tabatkins commentedon May 15, 2017
When/if he convinces the group this is possible and desirable, we'll change it. In the meantime, @fantasai and I are pretty against it. ^_^