Chris showed us a little while back that CSS grid areas and their elements are not necessarily the same size. It’s an interesting point because one might assume that putting things into a grid area would make those things occupy the entire space, but grid areas actually reserve the space defined by the grid and set the element’s justify-content and align-items properties to a stretch value by default.
So… yes, they are the same size, but not necessarily.
Chris ended his post by asking “who cares?” while indicating no one in particular. The point was much more geared toward calling this out as a starting point for folks who need to align content in the grid.
I’m not sure I have a better answer, but it made me think it would be fun if we could leverage those auto-assigned stretch values to adapt a user interface in interesting ways.
I’m not saying any of these are great use cases. In fact, they may be downright silly. That said, maybe they can be the starting point for other ideas.
Stretching Form Fields
One idea is to add some interaction to form fields. If our