Category: shorthand

CSS Shorthand Syntax Considered an Anti-Pattern

I remember Estelle Weyl used to mention this a lot in her talks. If you set .button { background: red; } you’ve, inadvertently or not, set a whole slew of other properties to their initial values. Harry Roberts demonstrates this clearly and goes so far to say it’s a bad practice. I don’t avoid it, bu...