Retweeted

TIL: you can shorten CSS gradients & remove redundant values by using a little “fixup trick”.
Thanks to @anatudor who shared it on @css. 🙇🏻♂️
(css-tricks.com/while-you-werent-…)
🔗 Codepen example: codepen.io/stefanjudis/pen/vYOjJ…
🔗 Fixup spec paragraph: drafts.csswg.org/css-images-3/#c… t.co/5UhShsxGvE