3 ms·
I just straight up think short hand properties the way they are designed are a bad idea. I've been writing CSS for about 15 years at this point, and I still can
by mstade 6y ago
I just straight up think short hand properties the way they are designed are a bad idea. I've been writing CSS for about 15 years at this point, and I still can't remember the order of any short hand, I have to look it up every time, so I just type it all out instead. At least then I know what I'm looking at when I look at the code next time 'round.
I'd rather see something like named parameters, e.g.:
margin: top(1rem) left(2rem) right(2rem) bottom(1rem);
margin: vertical(1rem) horizontal(2rem);
margin: all(1rem);
Or some such – I dunno I'm no language designer.