A partial archive of discourse.wicg.io as of Saturday February 24, 2024.

An easy notation for grayscale colors

leaverou
2014-07-27

See: http://lea.verou.me/2014/07/an-easy-notation-for-grayscale-colors/ & vote! (ideally, with justification) :smile:

Boldewyn
2014-07-28

Done. I voted for extending rgb(a). The explicit ones, gray, white and black are all ambiguous names (why does white(0) result in black?) Other methods could be defined, yes, but looking at how well the #123 short form of #112233 works, a shortcut for rgb(a) seems the perfect way to go.

Boldewyn
2014-08-04

Bit off-topic, but somehow relevant: A nice advantage of overloading rgba():

rgba(currentColor, .5)

would then be easier to spec, too.

tabatkins
2014-08-04

That’s handled by the specced color() function, like color(currentcolor a(.5)).

Boldewyn
2014-08-04

TIL about color(). Thanks!

Sofiane
2020-11-15

I was thinking of making the HEX format simpler

#EEE = #EEEEEE

#E5 = #E5E5E5

#E = #EEEEEE