Using container queries along with subgrid

Hey guys! I'm struggling a little bit with this layout:

https://codepen.io/Markus-Rappat/pen/MWNGJME

I would love to use the container query on the subgrid but it seems like it's breaking the subgrid functionality. Try to uncomment "container-type: inline-size" on the subgrid and see how the layout breaks. Note: This is just a simple markup for demonstrating the issue, nothing more, nothing less.

Please especially take a look at the rows behaviour.

Happy for any explanation or even better, solution.
image.png
image.png
Was this page helpful?