W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2016

[csswg-drafts] [css-align][css-grid][css-flexbox] wrong assumptions about baselines only occurring in the inline axis

From: Mats Palmgren via GitHub <sysbot+gh@w3.org>
Date: Thu, 16 Jun 2016 21:58:37 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-160770741-1466114316-sysbot+gh@w3.org>
MatsPalmgren has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-align][css-grid][css-flexbox] wrong assumptions about 
baselines only occurring in the inline axis ==
A few CSS specs seems to assume boxes only have baselines in their 
inline axis.
That seems wrong since Grid and Tables have baselines in both axis:
https://drafts.csswg.org/css-grid/#grid-baselines
https://drafts.csswg.org/css-align/#baseline-export

For example, if an inline-grid is placed on a block line and its 
writing-mode is orthogonal
to the block, then I think it should be baseline-aligned using its 
block-axis baseline.
So if there is a baseline-aligned group of items in its first 
*column*, it is aligned on the line.

Here are a few spec snippets that needs to be corrected (there may be 
more):
https://drafts.csswg.org/css-align/#baseline-terms
"share an alignment context whose axis is parallel to their inline 
axis"

This should instead say something like:
"share an alignment context whose axis is parallel to an axis for 
which the box has a baseline"

https://drafts.csswg.org/css-align/#baseline-align-content
"whichever matches its inline axis" (three times)

https://drafts.csswg.org/css-align/#baseline-align-self
"inline axis" (twice)

https://drafts.csswg.org/css-grid/#grid-baselines
"A grid item participates in baseline alignment in a particular 
dimension if its value for align-self or
justify-self, as appropriate, is baseline and its inline axis is 
parallel to that dimension."

s/and its inline axis is parallel/ and it has a baseline parallel/  

(BTW, that whole statement above is redundant and can be removed since
 CSS Align
defines when a grid item participates in baseline alignment.  It also 
seems misplaced
since this chapter is about grid *container* baselines.)

https://drafts.csswg.org/css-flexbox/#align-items-property
"baseline
    If the flex item’s inline axis is the same as the cross axis, this
 value is identical to flex-start.
    Otherwise, it participates in baseline alignment:..."

That seems wrong if the flex item is a grid container for example.

Thanks,
Mats

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/197 using your GitHub 
account
Received on Thursday, 16 June 2016 21:58:38 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:20 UTC