Skip to content

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

Closed

Description

@impressivewebs

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.

Activity

  1. changed the title [-][css-flexbox-1] Initial Value for flex-grow and flex-shrink incorrect?[/-] [+][css-flexbox-1] Initial Value for flex-grow incorrect?[/+] on Oct 9, 2020
  2. impressivewebs commented on Oct 9, 2020

    @impressivewebs
    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.

  3. tabatkins commented on Oct 9, 2020

    @tabatkins
    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.

  4. impressivewebs commented on Oct 10, 2020

    @impressivewebs
    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?

  5. tabatkins commented on Oct 10, 2020

    @tabatkins
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.css-flexbox-1Current Work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions