[whatwg] Accept full CSS colors in the legacy color parsing algorithm

Philip Taylor excors+whatwg at gmail.com
Wed Apr 13 09:53:07 PDT 2011

On Fri, Apr 8, 2011 at 10:26 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> On 4/8/11 1:54 PM, Tab Atkins Jr. wrote:
>> In the legacy color parsing algorithm [...]
>> Could we change those two steps to just say "If keyword is a valid CSS
>> color value, then return the simple color corresponding to that
>> value."?  (I guess, to fully match Webkit, you need to change the
>> definition of "simple color" to take alpha into account.)
> Do you have web compat data here?

I don't know if this is relevant or useful but anyway:
http://philip.html5.org/data/font-colors.txt has some basic data for
<font color> values, http://philip.html5.org/data/bgcolors.txt for
<body bgcolor>. (Each line is the number of URLs that value was found
on (from the set from
http://philip.html5.org/data/dotbot-20090424.txt), followed by the
XML-encoded value.)

Philip Taylor
excors at gmail.com

More information about the whatwg mailing list