3 ms·
Wouldn't that shorten to #0f0? But "green" is #008000, which doesn't shorten?
by rawling 5y ago
Wouldn't that shorten to #0f0? But "green" is #008000, which doesn't shorten?
- yencabulator 5y ago#080 is #008800, not #008000. https://en.wikipedia.org/wiki/Web_colors#Shorthand_hexadecimal_form https://en.wikipedia.org/wiki/Web_colors#Shorthand_hexadecim...
- zamadatix 5y agoHmm I wonder which approach is actually better overall when it comes to content-encoding like their own site uses (brotli compression) or client side parsing performance. It's all probably a bit off into the weeds over something like 0.05% performance though.
- chronogram 5y agoAh thanks, I assumed ‘#0f0’ as well. I guess it is length based then.