Hot take: this is a bad rule.
Sometimes I like to be explicit.
Sometimes I don’t remember which order the shorthand’s values go in.
Sometimes the shorthand property’s syntax is hella confusing (looking at you, grid-template
).
Clarity over concision, please. https://stylelint.io/user-guide/rules/declaration-block-no-redundant-longhand-properties/ #css
=> More informations about this toot | More toots from noleli@mastodon.social
@noleli I agree with your take! If shorthand properties are something that folks really feel strongly about, that can be handled in the dist files, but should be preserved for authors.
=> More informations about this toot | More toots from patrickfulton@mastodon.social
@patrickfulton absolutely! compile to shorthand if you want to save a few bytes.
=> More informations about this toot | More toots from noleli@mastodon.social This content has been proxied by September (ba2dc).Proxy Information
text/gemini