Closed
Bug 1456224
Opened 6 years ago
Closed 4 years ago
[css-flexbox] handle table wrapper boxes as special flex items (allowed to flex/shrink, with possible extra reserved space for wrapper)
Categories
(Core :: Layout, enhancement, P3)
Core
Layout
Tracking
()
RESOLVED
DUPLICATE
of bug 1674302
Tracking | Status | |
---|---|---|
firefox61 | --- | affected |
People
(Reporter: dholbert, Unassigned)
References
(Blocks 1 open bug)
Details
As noted in bug 1455976 comment 15, there's some special-case flexbox spec text for table wrapper boxes as flex items (pulling info from their child table boxes):
# like width and height, the flex longhands
# apply to the table box as follows: the flex item’s
# final size is calculated by performing layout as if
# the distance between the table wrapper box’s edges
# and the table box’s content edges were all part of
# the table box’s border+padding area, and the
# table box were the flex item.
https://drafts.csswg.org/css-flexbox/#flex-items
This will end up making us *behave* as if a display:table flex child were a growable/shrinkable flex item like any other (but possibly with some extra space reserved for the wrapper box, e.g. if there's a caption that requires more space in the main axis than we'd otherwise allocate for our flex base size).
I think this will require a bit of special-case code during the "resolve the flexible lengths" chunk of flex layout, as well as everywhere that we deal with a flex item's hypothetical size (e.g. when figuring out how many flex items fit on a multiline flex container's flex line).
Reporter | ||
Comment 1•6 years ago
|
||
(attachment 8970026 [details] is a partial testcase for this bug.)
Updated•6 years ago
|
Priority: -- → P3
Reporter | ||
Updated•5 years ago
|
See Also: → https://webcompat.com/issues/40551
Updated•4 years ago
|
See Also: → https://webcompat.com/issues/55006
Updated•4 years ago
|
Comment 2•4 years ago
|
||
After fixing bug 1674302, we can render testcase in comment 1 correctly. For the other webcompat bugs in "See Also" fields, we need more work.
-
https://webcompat.com/issues/40551
I cannot reproduce this one. -
https://webcompat.com/issues/55006
We still have bug related to SVG's min-content contribution. Filed bug 1694295. -
https://github.com/webcompat/web-bugs/issues/65036
Still have bug for a table flex item with max-width. Filed bug 1694298.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•