logoalt Hacker News

moritzwarhier04/02/20250 repliesview on HN

I tend to agree, but have softened on this, not only but also because of the handy devtools feature to expand them.

I do use them for margin, padding, inset.

Others I dislike a bit, for example I hate the one for background whenever things get complex. Others I don't like, but have become used to, for example the "flex" shorthand. I prefer separate flex-grow, flex-shrink and flex-basis properties.

Downside (and sometimes, intended upside!) to all of them is how they interact with inheritance and the cascade, i.e. accidentally overriding properties. OTOH it can prevent you from forgetting to override inherited properties.

Since the properties for which a shorthand exists often are closely related, this can be an upside.

The one in the article I still have to digest.