Re: [csswg-drafts] [css-grid] Display any element as part of any given grid

Since I'm thinking of it...

The CSS specs themselves would strongly benefit from this.  Right now the ToC sidebar is positioned using a fairly hacky combo of position:fixed (on the sidebar) and a big left margin (on the body), and we have to be really careful that things work out properly.  With this we could just make `html` into a two-column grid, and pull the ToC up into the first column, and put `body` in the second.

(Alternately, the old Template Layout idea of being able to have a grid item that was just "the rest of the stuff all flowed together" (the @ cell) would work here, since the ToC is top-level in `body` - we'd make `body` a grid, just make ToC a normal grid item, and make the second column a "catch-all" cell to get the rest of `body`'s contents.)

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

Received on Monday, 14 May 2018 19:59:24 UTC