-
Notifications
You must be signed in to change notification settings - Fork 661
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-align][css-flex] 'baseline' computed value needs clarification on flexbox specs #1095
Comments
Please, @tabatkins @fantasai could you take a look at this issue ? Not that it's specially urgent, but I m afraid it gets lost, since it's not even tagged yet. Thanks. |
yes, Firefox's behavior is correct. See https://drafts.csswg.org/css-align-3/#baseline-values particularly the second-to-last note. Flexbox's definitions of these properties are limited to the subset of features that were defined when it hit CR, so it can't include the first/last keywords. Think of Flexbox's alignment chapter as being an earlier Level of Box Alignment. :) Let me know if you think a spec fix is needed here. |
@fantasai FYI, the draft css-flexbox spec still defines these properties differently than css-align. That seems like a spec bug to me. I think 8.2/8.3/8.4 in the draft css-flexbox spec needs to be removed/merged into css-align. It's confusing for everyone to have definitions for these properties in two places. (It's fine if the TR still have them with the old syntax/values, because everyone knows that TR means it's likely already obsolete.) |
The ED is intended to be a temporary staging area for /TR; /TR is out-of-date mainly because it takes so long to get it updated. We're getting better at that now that W3C finally has tooling for pushing updates without involving handoffs among the editors and at least two members of W3C Staff, so differences between ED and /TR are really bugs in the process, and should be increasingly temporary. I added a section to Module Interactions in Flexbox; there's already one in Align. And the Alignment section of Flexbox already says that it's will be superceded by Box Alignment. Not sure what else to do. |
Also wrt this issue, CSS values always serialize to their shortest representation (unless that representation is newer than the longer representation, but that's not the case here). |
The alignment spec states the following about values:
https://drafts.csswg.org/css-align/#typedef-baseline-position
In the other hand, the Flexbox spec states the following:
https://www.w3.org/TR/css-flexbox-1/#align-items-property
Firefox nightly returns the following computed values:
align-items: baseline => baseline
align-items: first baseline => baseline
align-items: last baseline => last baseline
Is the current Firefox's behavior correct ?
In any case, shouldn't the Flexbox spec reflect the new baseline syntax and computed values ?
The text was updated successfully, but these errors were encountered: