3 ms·
This is a fantastic article, and highlights both why grid is fantastic, and how its syntax (and, more generally, CSS syntax) is so annoying. Why there must be S
by dalmo3 2y ago
This is a fantastic article, and highlights both why grid is fantastic, and how its syntax (and, more generally, CSS syntax) is so annoying. Why there must be SO MANY ways to write the same thing?
There are two dimensions, and three parameters each - start, end, size. Then there are at least three ways to declare each parameter. And then... shorthand properties, what a mess.
I always find it very hard to read someone else's grids. No matter how organised the dev is, the lack of an idiomatic way to write means there's always a very high cognitive load for parsing.
- mixmastamyk 2y agoYes, spec seems to be not polished. Wish you could use ids/tags to name areas instead of having to match area/class/grid-area three times. Folks must have missed school on DRY day. Also the "-template" names are a waste of typing when plural/singular is already enough to disambiguate grid from items.