Re: [csswg-drafts] [css-grid2] API for querying implicit grids

Thanks for opening issue #2681. With regard to the other items, I still think there's a requirement for the second one in particular. Note that the point of it was primarily to be able to find out the pixel positions of each row and column, which I don't think can be done simply by creating a map of the positioned items.

Consider that the row/column positions can be defined with complex CSS, including custom values, fr units, negative indexes, calc() and minmax(), and that the grid can be defined even without any content. The browser knows the calculated position of each row and column, but there's no way for script to query this.

The most obvious use cases can indeed be "solved" by ensuring the grid is fully populated by including empty divs, then using the gCS() (per issue #2681) to build up a map of the grid. But for more complex grids, with overlapping items and blank spaces - or simply if the developer doesn't want to add a load of empty divs - being able to find out the final position of each row and column line would make things a lot simpler.

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

Received on Monday, 21 May 2018 09:26:21 UTC