Closed
Bug 1180272
Opened 8 years ago
Closed 8 years ago
Implement "flex-basis: content" for auto-sizing of flex items
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
DUPLICATE
of bug 1093316
Tracking | Status | |
---|---|---|
firefox42 | --- | affected |
People
(Reporter: dholbert, Unassigned)
Details
We should implement the flexbox spec's "content" keyword, described here: > Name: flex-basis > Value: content | <‘width’> > [...] > content > Indicates automatic sizing, based on the flex item’s content. > > Note: Note that this value was not present in the initial > release of Flexible Box Layout, and thus some older > implementations will not support it. The equivalent effect > can be had by using auto together with a main size (width > or height) of auto. http://dev.w3.org/csswg/css-flexbox-1/#propdef-flex-basis Brief history: * This is the spiritual successor to bug 1032922. * "flex-basis:auto" traditionally meant "look at the width or height property. * But, in bug 1032922, we implemented a spec change to redefine "flex-basis:auto" to mean "auto-size" [ignoring width/height], and we introduced "flex-basis:main-size" to mean "look at the width or height property". * BUT, that broke a lot of websites, so the spec was reverted and we backed out our change, via bug 1093316. * The new more-backwards-compatible strategy in the spec is to *keep* "flex-basis:auto" at its traditional definition ("look at the width or height property"), and introduce a new keyword "content" to mean "auto-size". * This bug here tracks adding that new keyword.
Reporter | ||
Comment 1•8 years ago
|
||
Gah, I already filed this as bug 1093316. I placed too much trust in my awesomebar-search to find that bug for me. (It did not, which is why I filed a new bug.)
Comment 2•8 years ago
|
||
Given that bug 1093316 is fixed, does that mean we support the content keyword?
Flags: needinfo?(dholbert)
Reporter | ||
Comment 3•8 years ago
|
||
No. We just backed out the first proposal there. 'content' is the new proposal.
Flags: needinfo?(dholbert)
You need to log in
before you can comment on or make changes to this bug.
Description
•