Closed
Bug 1280313
Opened 10 years ago
Closed 8 years ago
blockify flex items to avoid anonymous table elements around table cells
Categories
(Core :: Layout: Tables, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1185140
People
(Reporter: tri, Unassigned, Mentored)
References
()
Details
Attachments
(1 file)
|
98.66 KB,
image/jpeg
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36
Steps to reproduce:
Reproducible here:
http://codepen.io/tridnguyen/pen/KMMWMv
The "fix" is in the td style block, with the line `display: block`
Actual results:
Each `td` is wrapped with anonymous table elements, so the `flex-basis` and `order` properties of the flex items are not applied.
Adding `display: block` on the `td` fixes this.
More description can be found here http://stackoverflow.com/questions/34599876/flexbox-on-table-doesnt-work-in-firefox
Expected results:
Please see the attached image for actual vs expected results.
| Reporter | ||
Updated•10 years ago
|
Comment 1•10 years ago
|
||
Per text at the end of <https://drafts.csswg.org/css-flexbox/#flex-items>, blockification should occur *before* box-tree fixup, so the <td>s should be forced to display:block automatically (since they're children of a flexbox) and not generate any anonymous wrappers.
Comment 2•8 years ago
|
||
I think we have fixed this already. I see the same result in FF as in Chrome
after removing the display:block "fix" in the codepen testcase.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
Comment 3•8 years ago
|
||
mozregression says this was fixed in a range that includes bug 1185140 -- this is probably a dupe of that bug.
(The patches had actually landed a few months before this bug was filed, but they hadn't made it to release yet, I think, which is why this was still visible at that time & why the reporter ran into it, presumably.)
Resolution: WORKSFORME → DUPLICATE
Comment 4•8 years ago
|
||
Comment 5•8 years ago
|
||
(In reply to Mats Palmgren (:mats) from comment #2)
> I think we have fixed this already. I see the same result in FF as in Chrome
> after removing the display:block "fix" in the codepen testcase.
For convenience, here's a testcase with that tweak already made (which renders the way shown in the screenshot, with all text on a single line, in old builds before this was fixed in comment 4's range):
https://codepen.io/anon/pen/qXQmWM
You need to log in
before you can comment on or make changes to this bug.
Description
•