[csswg-drafts] [css-grid-2] Clarify interaction between subgrid and position:relative (#7123)

mattwoodrow has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-grid-2] Clarify interaction between subgrid and position:relative ==
The current spec says that [subgrid containers should always be stretched](https://drafts.csswg.org/css-grid-2/#subgrid-box-alignment), but doesn't say anything about positioning. It does say that the grid itself should be aligned layout wise with the corresponding section of the parent grid.

If I apply `position:relative` and an offset to a subgrid, what should happen?

Should we offset the subgrid container (thus moving the rendering of the background/border etc) while leaving the grid aligned (such that the grid might be outside of the grid container)? Or should the positioning request be ignored, so that the subgrid container always covers the spanned grid tracks.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7123 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 9 March 2022 03:42:06 UTC