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: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 22 Jun 2015 14:06:24 -0700
Message-ID: <CAAWBYDBX8dptYzhrs-3_B=Gx1kmmwyZR0OGSuXMXEmeUhGtcfg@mail.gmail.com>
To: "Edward O'Connor" <eoconnor@apple.com>
Cc: WHATWG <whatwg@whatwg.org>
On Thu, Jun 18, 2015 at 10:35 AM, Edward O'Connor <eoconnor@apple.com> 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?

Just hex, or all CSS colors.  No sense going halfway here.  As you
note, they won't roundtrip, but if we're okay with that, then allowing
hsl() makes exactly as much sense as allowing "cornflowerblue".

Received on Monday, 22 June 2015 21:07:13 UTC

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