W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2015

Re: [whatwg] support for named colors in <input type=color> (was Re: Icon mask and theme color)

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Thu, 18 Jun 2015 13:37:11 -0700
Message-ID: <CABZUbM0HJDjWfPFMc5NMsvfzx7_jeWQGVf=PWHyTdMumKN3jSw@mail.gmail.com>
To: "Edward O'Connor" <eoconnor@apple.com>
Cc: WHATWG <whatwg@whatwg.org>
On 6/18/15, Edward O'Connor <eoconnor@apple.com> wrote:
> Hi Anne,
>
> You wrote:
>
>>> On the other hand, <link rel=mask-icon color=darkslategray> seems
>>> like it should Just Work™.
>>
>> I guess we could add support for named colors to <input type=color>
>> too.
>
> Offhand I think that's a good idea. Probably won't round-trip through
> typical color picker implementations, but that doesn't seem like much of
> a problem to me.
>
> What do others think?
>

I think getAttribute("color") should return the value specified in the
HTML source code and that color serialization, what you might get from
the property  should generally be consistent across APIs. Here is one:

http://dev.w3.org/csswg/cssom/#serializing-css-values

Seems weird specifying color in the HTML. Reminds me of bgColor.
Should there be a way to specify the link's color in CSS? Like
mask-image?
-- 
Garrett
@xkit
ChordCycles.wordpress.com
garretts.github.io
personx.tumblr.com
Received on Thursday, 18 June 2015 20:37:41 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:33 UTC