- From: Tobi Reif via GitHub <sysbot+gh@w3.org>
- Date: Tue, 15 May 2018 10:05:00 +0000
- To: public-css-archive@w3.org
> This sounds like a use-case that should be addressed in an updated CSS Regions spec. I sincerely don't think that that's the case. I simply want to be able to display any element as grid-item of any given grid - no matter where it is located in the DOM tree (with the exception of eg the grid parent element). That's all - there's no region and no flowing into regions. When I write eg this ``` #the_grid { display: grid; grid-template-columns: repeat(2, auto); } #the_element { display-as-grid-item-of: "#the_grid"; /* Where to place it in the Grid : */ grid-row: 1; grid-column: 2; } ``` ... #the_element becomes a Grid item of #the_grid, as if it were a DOM tree child of #the_grid. That's all. The result should be the same as if #the_element had been moved from its location in the DOM tree to become a child of #the_grid (eg always as last child - it can still get moved/positioned in that grid layout using `grid-row` etc). Nothing less should happen, and definitely nothing more - thus it is purely a Grid wish (which could be generalized so that it can also be used with Flexbox) and is not a Regions feature of wish. And yes, Regions should also get finished 😀 -- GitHub Notification of comment by tobireif Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2530#issuecomment-389113999 using your GitHub account
Received on Tuesday, 15 May 2018 10:05:05 UTC