Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[css-align][css-flexbox] Should `align-self` and `flex` (& its subproperties) be honored on table wrapper box? #547
Load https://jsfiddle.net/vhomvqor/3/ in Firefox, Edge, or Chrome. This testcase has a flex container, with a
For some reason, Chrome / Edge / Firefox all interoperably honor
I'm curious if we're all somehow correct (I think we're probably not), or whether we need to make this consistent & get it specced.
Technically, I think ignoring these properties is the most spec-compliant thing to do, since the flex item here is really the
But subjectively, I think the spirit/intent of that table spec-text is something like: "if a property is meant to be used by an element's container, it should be used on the
Perhaps the flexbox spec (and css-align spec) should include some normative text that broadens the list of a table's properties that are used on the table-wrapper-box?
We probably need this for the grid spec, too, for all of its properties that apply to grid items (e.g.
Also, I should clarify one thing -- when I say
Yes, you're right about the spirit of the split: all new properties, if they apply to tables at all, need to specify whether they apply to the table box or the table wrapper box (because they don't apply to both certainly), and the alignment properties, grid placement properties, and
I'm not sure, atm, what's a good way of representing this information. :) It falls along the lines of "does this property apply to ::first-line"?
Looks like we had text for this in the past, but deleted it: https://drafts.csswg.org/css-flexbox/#change-2015-anonymous-fixup. I assume that we accidentally assumed the references to "table wrapper box" were referring to the anonymous table box that gets wrapped around bare table-cells/etc during box-tree fixup.
Should we just restore it? Everyone's interoperable, but with clearly wrong behavior.
referenced this issue
Feb 3, 2017
My opinion is the other thread (#948).
TLDR: I am fine with adding text to hoist flex/align-*/etc in the tables spec, I just continue to think it would be easier to stop pretending we don't just want the table-wrapper box to be the box generated for the