Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Input type "color"?

I checked out some input type from HTML5 and I found out that the chrome support for the input type color doesn't work. My chrome version is 15.0.874.121 and the w3schools site says that it's supported since the version 12 :

My question is just : why that doesn't work for me? Is it a regression of the HTML5 support in Chrome?

like image 863
Alexis Avatar asked Dec 01 '11 08:12

Alexis


3 Answers

w3school is not a official doc. It has lot of errors. It's partially right though in this case. Just see this site http://w3fools.com/

As far as input type color is supported check this

Following browsers now supports color widget

Firefox 29

Firefox 29 color input Ubuntu

Opera Desktop 11

Opera desktop color input

Chrome Desktop 20:

chrome input type color Ubuntu

Android 4.4 / Chrome Mobile :

chrome mobile color input

Opera mobile:

opera mobile color input

Blackberry:

blackberry color input

Firefox os 1.3

Firefox os now supports color input but i still don't have a screen shot

This link/info is now old

http://www.reddit.com/r/browsers/comments/is1q9/does_chrome_safari_and_firefox_support_input/

Chrome 12: partial (minimal element support: yes, custom ui: no, value sanitization: no, field validation: yes)     
Safari 5.0.1: partial(minimal element support: yes, custom ui: no, value sanitization: no,field validation: yes)     
Opera 11.50: partial (minimal element support: yes, custom ui: yes, value sanitization: yes, field validation: no)    
IE 9: No
Firefox 5: No 

If u want u can use this http://www.eyecon.ro/colorpicker/

like image 135
aWebDeveloper Avatar answered Oct 24 '22 00:10

aWebDeveloper


I’ve got standalone versions of Chrome for testing (see http://www.oldapps.com/google_chrome.php), and neither Chrome 12, 13 or 15 seem to support <input type="color"> — they all just show a text field. (As opposed to Opera 11, which shows a colour picker.)

The Reddit article linked to in @WebDeveloper’s answer says that html5test.com reports Chrome 12 as supporting field validation on <input type="color">. This is true — html5test.com does report that for Chrome 12 (and doesn’t for Chrome 15), but I’m not sure what that actually means.

like image 30
Paul D. Waite Avatar answered Oct 24 '22 01:10

Paul D. Waite


<input type="color" /> is currently in development and is not yet implemented.

See:

http://code.google.com/p/chromium/issues/detail?id=83865

http://code.google.com/p/chromium/issues/detail?id=82635

like image 38
Chris McFarland Avatar answered Oct 24 '22 02:10

Chris McFarland