Re: [csswg-drafts] [css-grid] Add APIs for discovering grid information not exposed by properties (#4511)

Interesting things that such API could do:

 - List all tracks
 - List leading implicit tracks
 - List all explicit tracks
 - List explicit tracks preceding auto-repeated ones
 - List explicit auto-repeated tracks
 - List explicit tracks following auto-repeated ones
 - List trailing implicit tracks
 - Given a track,
   - Check whether it's implicit, explicit, auto-repeated, etc.
   - Obtain its index among all tracks, or implicit tracks, etc.
   - Obtain the preceding or following track
   - Obtain its track sizing function
   - Obtain its used size
   - Obtain its offset from the start of the grid
   - Query the grid items crossing that track, or that start at the start of that track, or that end at the end of that track, or that fit in that track (anonymous items can be problematic...)
   - Query the grid cells in the track (all, or explicit in the other axis, implicit, etc.)
   - Query the grid areas crossing the track
 - Given a grid area,
   - Obtain its rows and columns
   - Obtain its grid cells
   - Query the grid items involved with the area (starting before the area start, starting at the area start, starting after the area start but before the area end, and analogous for the end, and independent choices in both axis).
 - Given a grid cell,
   - Obtain its row and column
   - Query the grid items involved with the cell.


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

Received on Monday, 18 November 2019 17:23:45 UTC