W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2020

Re: [csswg-drafts] [css-align][css-grid] Do grid items that have "no baseline set" participate in baseline alignment? (#4675)

From: Javier Fernandez Garcia-Boente via GitHub <sysbot+gh@w3.org>
Date: Wed, 18 Mar 2020 16:28:26 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-600731577-1584548904-sysbot+gh@w3.org>
As a matter of fact, @MatsPalmgren filed a [bug](https://bugzilla.mozilla.org/show_bug.cgi?id=1321655) precisely to allow orthogonal grid items to participate, with the synthesized baseline, in baseline alignment. 

I guess the question that still stands is whether any item with no baseline must follow that approach. The spec is not clear regarding the need of items with no baseline to synthesize it in any case, it just mentions how to do it in case of needing to do so. 

Unless mats disagree, I think we can all agree that any item with no baseline should participate in baseline alignment, if any of the CSS Box Alignment properties state so, using the synthesized baseline. This is coherent with what we have decided to do for orthogonal items. If we all agree on this, we may want to add some edits in the spec to be more clear about this.

I thought that the following statement of the CSS Box Alignment spec was enough for determining the participation of any grid item, either it has a natural baseline or not: 

https://drafts.csswg.org/css-align/#baseline-align-self
>  A grid item participates in first/last baseline self-alignment in its startmost/endmost row or column if its align-self or justify-self property (respectively) computes to first baseline/last baseline. 

However, Mats seems to disagree and would rather to state clearly that items with no natural baseline also participate.


-- 
GitHub Notification of comment by javifernandez
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4675#issuecomment-600731577 using your GitHub account
Received on Wednesday, 18 March 2020 16:28:28 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:02 UTC