Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-flexbox-1] Initial Value for flex-grow incorrect? #5602

Closed
impressivewebs opened this issue Oct 9, 2020 · 4 comments
Closed

[css-flexbox-1] Initial Value for flex-grow incorrect? #5602

impressivewebs opened this issue Oct 9, 2020 · 4 comments
Labels
Closed as Question Answered Used when the issue is more of a question than a problem, and it's been answered. css-flexbox-1 Current Work

Comments

@impressivewebs
Copy link

impressivewebs commented Oct 9, 2020

Here you'll find a few paragraphs describing flex-grow and flex-shrink. It says for flex-grow:

When omitted, it is set to 1.

Is this a mistake? According to the property definition table the initial value is 0. So it seems this should be corrected to:

When omitted, it is set to 0.

@impressivewebs impressivewebs changed the title [css-flexbox-1] Initial Value for flex-grow and flex-shrink incorrect? [css-flexbox-1] Initial Value for flex-grow incorrect? Oct 9, 2020
@impressivewebs
Copy link
Author

Note: I had originally written that this was the case for both properties, but this seems to be a copy/paste mistake taken from flex-shrink.

@tabatkins
Copy link
Member

No, it's correct. This one's a bit funky - the flex-grow component of the 'flex' longhand does not default to the initial value of the 'flex-grow' property.

@tabatkins tabatkins added Closed as Question Answered Used when the issue is more of a question than a problem, and it's been answered. css-flexbox-1 Current Work labels Oct 9, 2020
@impressivewebs
Copy link
Author

@tabatkins Ah that's interesting. So, is there something you could add to that explains this a bit? Because it appears to be a contradiction. Or is it explained somewhere else?

@tabatkins
Copy link
Member

Check the note at the end of that subsection, just before the 7.1.1 heading. ^_^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed as Question Answered Used when the issue is more of a question than a problem, and it's been answered. css-flexbox-1 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants