W3C home > Mailing lists > Public > public-css-archive@w3.org > February 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, 19 Feb 2020 17:19:49 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-588337906-1582132788-sysbot+gh@w3.org>
I think Chrome is failing in the following tests for this same reason:

- [grid-item-input-type-number.html](https://github.com/web-platform-tests/wpt/blob/master/css/css-align/baseline-rules/grid-item-input-type-number.html)
- [grid-item-input-type-text.html](https://github.com/web-platform-tests/wpt/blob/master/css/css-align/baseline-rules/grid-item-input-type-text.html)

In these cases, the problem is how to determine the baseline of a grid container, which has an orthogonal item. As orthogonal item, it doesn't have a natural baseline. My understanding of the spec is that the grid container should use that item, which should synthesized its baseline, to generate the grid container's baseline.


> 2- Otherwise, if the grid container has at least one grid item, the grid container’s first (last) baseline set is generated from the alignment baseline of the first (last) grid item in row-major grid order (according to the writing mode of the grid container). If the item has no alignment baseline in the grid’s inline axis, then one is first synthesized from its border edges. 

GitHub Notification of comment by javifernandez
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4675#issuecomment-588337906 using your GitHub account
Received on Wednesday, 19 February 2020 17:19:51 UTC

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