|
|
|
|
|
by mvonballmo
792 days ago
|
|
A "row-less" grid fits very well in the current CSS Grid specification, in that it can reuse the very powerful column-definition property as well as sub-grids. Their examples very convincingly show how orthogonal these features are. Mostly, you just write grid-row-template: masonry and everything else just works with it. This is nice. It doesn't become harder to use the grid layout than it already is IMHO. The drawback is mostly for browser-engine authors, for whom the bar for "fully supports CSS Grid" will be set even higher. They also mention that it might avoid "performance traps" where an implementation that needs to support all features of grid might be slower at some parts of grid layout than it would be if the specification were simpler. If there were a separate display mode, then you'd have to repeat the grid-column specification for the masonry layout, which seems a shame. |
|
Why? What's the downside to reusing grid-column-template or whatever for the CSS Masonry spec?