W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2011

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

From: Philip Taylor <excors+whatwg@gmail.com>
Date: Wed, 13 Apr 2011 17:53:07 +0100
Message-ID: <BANLkTimNmJ2E6h2iqQmWzTXDPNs1KBwrJQ@mail.gmail.com>
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
Received on Wednesday, 13 April 2011 09:53:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:03 GMT