Re: Extended shorthand for hex colours
Christoph Päper <[email protected]> Sun, 10 Jul 2016 10:20:52 +0200
| Newsgroups | gmane.comp.web.css.general |
|---|---|
| Message-ID | <[email protected]> |
1½ years ago, Tab Atkins Jr. <[email protected]>: > On Wed, Jan 14, 2015 at 11:59 PM, Ryan Williams >> >> 1. #C expands to #CCCCCC >> 2. #C3 expands to #C3C3C3 >> 3. #CCC expands to #CCCCCC > > As Simon says, the WG is generally of the opinion that expanding > 2-digit hex in the way you suggest is confusing, because it expands in > a different way than 3/4 digit hex does. The single-digit hex doesn't > suffer from this problem, but it's also less useful, only allowing you > to specify 16 shades of gray, and save two characters doing so. Exactly. If anything, `#C3` should expand to `#CCCCCC33`, i.e. a gray with alpha.