Re: [csswg-drafts] [css-align][css-grid] Incorrect grid's intrinsic size when applying baseline-alignment

> Before performing the layout, such item's container is the grid box, which has indefinite height. Hence, the item's text is laid out in a single line.

Its containing block is the 2/1 grid area, right? That has 200px height, which should be used for its linebreaking.

Per [6.2](https://drafts.csswg.org/css-grid/#grid-item-sizing):

> A grid item is sized within the containing block defined by its grid area.

And per [11.1.1](https://drafts.csswg.org/css-grid/#algo-overview), for more detail:

> If calculating the layout of a grid item in this step depends on the available space in the block axis, assume the available space that it would have if any row with a definite max track sizing function had that size and all other rows were infinite.

In this case the item only spans the one row, which has a max track sizing function of 200px, so the available space should be 200px.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2409#issuecomment-376344027 using your GitHub account

Received on Monday, 26 March 2018 23:24:08 UTC