Re: [csswg-drafts] [css-grid-3] Track definition of 'subgrid' in the direction of the stacking axis of a parent grid lanes container (#13529)

The CSS Working Group just discussed `[css-grid-3] Track definition of 'subgrid' in the direction of the stacking axis of a parent grid lanes container`, and agreed to the following:

* `RESOLVED: if you attempt to subgrid in stacking axis, it's overridden to none`

<details><summary>The full IRC log of that discussion</summary>
&lt;kbabbitt> alisonmaher: spec currently says if you try to subgrid a grid container in the stacking axis of a grid lanes container<br>
&lt;kbabbitt> ... the result will be to convert that container to a grid-lanes container, with that axis becoming the stacking axis<br>
&lt;kbabbitt> ... wasn't clear if there's a use case for that, given they're different display types, would be awkward to do<br>
&lt;kbabbitt> ... based on subgrid declaration whcih seemed strange to me<br>
&lt;kbabbitt> ... proposal is to override the subgrid declaration to none<br>
&lt;kbabbitt> ... one side effect of this is that if you subgrid a row-based grid-lanes container to a column-based grid-lanes container<br>
&lt;kbabbitt> ... the row-based container will be converted to a column-based grid-lanes container<br>
&lt;kbabbitt> ... because if both rows and columns are set to none, we choose columns<br>
&lt;kbabbitt> .... but since this is an edge case seems okay to me, wanted to see what rest of group thought<br>
&lt;TabAtkins> if you use `grid-template-columsn:none; grid-template-rows: subgrid`, and the parent is a column grid-lines, the subgrid -> none will make the child grid-lanes default into being columns<br>
&lt;sgill> q+<br>
&lt;Rossen> q?<br>
&lt;TabAtkins> q+<br>
&lt;kbabbitt> sgill: I think this makes sense<br>
&lt;Rossen> ack sgill<br>
&lt;kbabbitt> ... if I understand correctly, right nw if you have grid-lanes container and another one with subgrid in stacking axis<br>
&lt;kbabbitt> ... according to spec, we say that axis is also stacking axis?<br>
&lt;kbabbitt> alisonmaher: spec isn't clear about that case, with new proposal it's much clearer<br>
&lt;kbabbitt> sgill: I think so ebcause that should also make things consistent between display: grid or grid-lanes?<br>
&lt;kbabbitt> alisonmaher: yes it will be the same<br>
&lt;Rossen> ack TabAtkins<br>
&lt;kbabbitt> TabAtkins: fantasai and I agree this makes sesnse, especially now that they're different display types<br>
&lt;kbabbitt> alisonmaher: Proposed resolution is, if you attempt to subgrid in stacking axis, it's overridden to none<br>
&lt;kbabbitt> Rossen: objections?<br>
&lt;kbabbitt> RESOLVED: if you attempt to subgrid in stacking axis, it's overridden to none<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13529#issuecomment-4172117246 using your GitHub account


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

Received on Wednesday, 1 April 2026 18:27:28 UTC