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
What Gecko does is: it shrinks the table grid box, but not the table wrapper box. That's why margins are unaffected, or here the table doesn't fit next to the float:
That the table wrapper doesn't shrink can be observed with outline. And it's possible to align the table grid box to the right of the table wrapper box with direction: rtl:
I think both can be reasonable, but since Gecko allows the wrapper to be bigger than the grid (it can also happen with a caption, but Blink & WebKit never allow it), it should be possible to customize the alignment with justify-items (it would apply to the table wrapper, and affect the table grid that would get the initial justify-self: auto
Loirooriol
changed the title
[css2][css-tables] Should tables re-resolve their margins after shrinking due to visibility: collapse?
[css2][css-tables] Do collapsed tracks also shrink the table wrapper box or only the table grid box?
Dec 23, 2024
https://drafts.csswg.org/css2/#blockwidth
https://drafts.csswg.org/css2/#dynamic-effects
auto
margins usingwidth: 100px
, so they become 25px each. Then the table ends up being only 50px, but the margins stay as 25px.auto
margins with the final width, so they become 50px each.visibility: collapse
.Blink seems better I guess.
The text was updated successfully, but these errors were encountered: