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

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.

https://drafts.csswg.org/css-grid/#grid-baselines

> 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