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-inline] Which baseline to use as alignment baseline for grid container? #195
Comments
I'm not sure I understand the question. If you are doing first-baseline alignment on a grid, then you use a baseline from the (defined) first baseline set. If you are doing last-baseline alignment on a grid, then you use a baseline from the last baseline set. Of the baselines in the set, which one you use is determined by the alignment context. The text in https://www.w3.org/TR/css-align-3/#baseline-rules is intended to replace the text at the end of chapter 10 with prose that handles the fact that, in Level 3, we have multiple baselines per line of text. It's quite possible that I'm missing something, but I'm not sure what. :) |
Let's say I have an inline-grid with three rows next to some text "A" A 1 or like so: 1 Thanks, |
Ah, you're asking for 'vertical-align: baseline', do we use 'first-baseline' or 'last-baseline'... since CSS2.1 is totally inconsistent and picks first-baseline for inline-table and last-baseline for inline-block. I'd say first-baseline, since that's how the 'baseline' value of all the other alignment properties works. But for sure this needs to be clarified in the definition of 'vertical-align'. |
Resolved: https://lists.w3.org/Archives/Public/www-style/2016Jun/0158.html |
This is now captured in the definition of |
The chapter on Grid Container Baselines needs to say which baseline
to use as the alignment baseline.
https://drafts.csswg.org/css-grid/#grid-baselines
I'm looking for a statement like what CSS2 says for inline-block and inline-table
at the very end of chap 10:
https://www.w3.org/TR/CSS22/visudet.html
"The baseline of an 'inline-table' is ..."
I can't seem to find anything like that for Grid (or Flexbox for that matter).
The text was updated successfully, but these errors were encountered: