[Webkit-unassigned] [Bug 29358] [HTML5][Forms] <input type=color> UI

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 15 02:05:22 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=29358





--- Comment #6 from Kent Tamura <tkent at chromium.org>  2010-10-15 02:05:21 PST ---
(In reply to comment #5)
> I was interested in this for Bug 25032, so I've started working on this. As a first step, I am trying to draw a NSColorWell and I have a couple of questions.
> 
> 1. https://docs.google.com/View?id=dch3zh37_0cf8kc8c4 proposes implementing it like this.
> 
> input[type="color"]::-webkit-input-color-button {
>   -webkit-appearance: color-button;
> }
> 
> But do I need to  create -webkit-input-color-button pseudo element? Why can't I do this?
> 
> input[type="color"] {
>   -webkit-appearance: color-button;
> }

It's ok to omit ::-webkit-input-color-button if the 'color-button' appearance supports all of states such as :disabled :active.  I guess it can support.

> 2. NSColorWell does not have NSCell. How should I paint it?

I think NSColorWell appearance is just a square button + a filled rectangle.  So we can use NSButtonCell.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list