Implement "flex-basis: content" keyword for flexbox

NEW
Unassigned

Status

()

Core
Layout
3 years ago
3 months ago

People

(Reporter: dholbert, Unassigned)

Tracking

(Blocks: 1 bug, {dev-doc-needed, DevAdvocacy})

Trunk
x86_64
Linux
dev-doc-needed, DevAdvocacy
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [DevRel:P1], URL)

In the flexbox spec, "flex-basis" now accepts the keyword "content", which "indicates automatic sizing, based on the flex item’s content."

Brief history:
 * originally, "flex-basis:auto" meant "look at my width or height property".
 * Then, flex-basis:auto was changed to mean automatic-sizing, and "main-size" was introduced as the "look at my width or height property" keyword. I implemented this in bug 1032922.
 * Then, that change was reverted (which I'm doing in bug 1093316), so "auto" once again means "look at my width or height property"; and a new 'content' keyword is being introduced to trigger automatic sizing.  (This bug here covers adding that keyword).
Blocks: 1055888
Depends on: 1093316, 1032922
Keywords: dev-doc-needed

Comment 1

2 years ago
This property is now stable?
I'd consider the flex-basis property stable, yes.  (Though we don't implement its "content" keyword yet; that's what this bug covers).

(I don't think the spec authors are planning on adding any more special values for flex-basis, or changing the meaning of existing keywords again, if that's what you're asking.)
Keywords: DevAdvocacy

Comment 3

a year ago
(In reply to Daniel Holbert [:dholbert] (offline 2/18-2/21) from comment #2)
> I'd consider the flex-basis property stable, yes.  (Though we don't
> implement its "content" keyword yet; that's what this bug covers).
> 
> (I don't think the spec authors are planning on adding any more special
> values for flex-basis, or changing the meaning of existing keywords again,
> if that's what you're asking.)

Edge support 'content' keyword.
Whiteboard: [DevRel:P1]

Updated

11 months ago
Flags: platform-rel?

Updated

11 months ago
platform-rel: --- → ?
platform-rel: ? → ---
You need to log in before you can comment on or make changes to this bug.