-
Notifications
You must be signed in to change notification settings - Fork 682
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] Should 'justify-content' come after resolving flexible lengths? #11406
Comments
Section 9.7 is after 9.5 but this doesn't mean that it runs later. It's actually invoked from 9.3. |
Hmm… If this happens after 9.3, why isn’t it listed as 9.4? |
CSS specs are descriptive, not algorithmic, so the order isn't usually relevant. |
All of these steps are under Section 9, Flex Layout Algorithm, so the context is indeed a description of the Flexbox algorithm. Section 9.7 provides details for a specific part of the algorithm, and as you correctly pointed out, it is to be performed after Section 9.3. However, I see no compelling reason for Section 9.7 to be separated from the main sequence of steps. It acts as a kind of subroutine, which Section 9.3 refers to, but it is not referenced again in any subsequent steps. |
According to section 9.5(12)(2):
This step precedes section 9.7, "Resolving Flexible Lengths", in the algorithm's order. This sequence implies that the effect of
justify-content
might be overridden during the redistribution of available space.However, it seems more logical that
justify-content
should occur if there is remaining space after the flexible lengths have been resolved.According to: 8.2. Axis Alignment: the justify-content property:
The text was updated successfully, but these errors were encountered: