Skip to content

[css-flexbox] Why is space-evenly not included as a value option for justify-content and align-content? #9099

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

Closed
codersjj opened this issue Jul 21, 2023 · 4 comments
Labels
css-flexbox-1 Current Work

Comments

@codersjj
Copy link

In Flexible Box Layout, justify-content: space-evenly; and align-content: space-evenly; can be used, so why are they not included as value options in this document?

Here are the relevant links to the spec section:
https://drafts.csswg.org/css-flexbox/#justify-content-property
https://drafts.csswg.org/css-flexbox/#align-content-property

@SebastianZ
Copy link
Contributor

Those definitions were actually moved to https://drafts.csswg.org/css-align-3/#propdef-justify-content and https://drafts.csswg.org/css-align-3/#propdef-align-content, which refer to <content-distribution> that includes space-evenly.

So the outdated definitions in CSS Flexbox should actually be removed.

Sebastian

@SebastianZ SebastianZ added the css-flexbox-1 Current Work label Jul 21, 2023
@codersjj
Copy link
Author

Those definitions were actually moved to https://drafts.csswg.org/css-align-3/#propdef-justify-content and https://drafts.csswg.org/css-align-3/#propdef-align-content, which refer to <content-distribution> that includes space-evenly.

So the outdated definitions in CSS Flexbox should actually be removed.

Sebastian

I also saw the relevant definitions in the CSS Box Alignment Module documentation, but what I meant is that the related definitions in the CSS Flexible Box Layout Module should be updated, not removed.:persevere:

@SelenIT
Copy link
Collaborator

SelenIT commented Jul 22, 2023

The note in the section 8 of the Flexbox spec says that a subset of the box alignment properties and values was copied into the Flexbox spec only temporarily, to speed up its development. The CSS Box Alignment spec is supposed to be the single source of truth for the alignment properties and values for all layout mechanisms, and other specs (CSS Flexbox, CSS Grid, etc.) should just refer to it.

@codersjj
Copy link
Author

The note in the section 8 of the Flexbox spec says that a subset of the box alignment properties and values was copied into the Flexbox spec only temporarily, to speed up its development. The CSS Box Alignment spec is supposed to be the single source of truth for the alignment properties and values for all layout mechanisms, and other specs (CSS Flexbox, CSS Grid, etc.) should just refer to it.

It's obvious that I did not read the documentation carefully. Thank you very much, I understand it clearly now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-flexbox-1 Current Work
Projects
None yet
Development

No branches or pull requests

3 participants