This is why I avoid using the shorthands. Just be clear: padding-left, padding-right, padding-top, padding-bottom. Make readable code. It's worth the keystrokes.
---
RT @csaba_kissi
Understand different padding definitions in CSS
https://twitter.com/csaba_kissi/status/1559168625608691717
@worldsendless
I always think of it like a clock going clockwise. I usually compress things to the shorthand after everything is finalized and in good order.
@souldessin why compress, though? It only hurts later reading/maintenance, for a few bytes of savings that might not be worth the time it takes to do that rewrite.
@souldessin nice explanation :) Reminds me of stories I have heard of hold-overs from original C/Assembly who try to save memory with shorter variable names. In fact, I still see lots of historical examples of variable-name-truncation in timeless things like Emacs
@worldsendless
I will still occasionally find myself using variables like I'm in math. i==x+y