2 ms·
I've written implementations of the HTML5 color algorithms. There are some sequences of bytes which, when given as a color value in HTML5, don't correspond to a
by ubernostrum 10y ago
I've written implementations of the HTML5 color algorithms. There are some sequences of bytes which, when given as a color value in HTML5, don't correspond to an RGB color, which makes things interesting.
(for the record, they are the empty string, and any string that is an ASCII case-insensitive match for the string "transparent")