Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use @list to create palette #102

Open
Dodo-87 opened this issue Jul 16, 2013 · 0 comments
Open

Use @list to create palette #102

Dodo-87 opened this issue Jul 16, 2013 · 0 comments

Comments

@Dodo-87
Copy link

Dodo-87 commented Jul 16, 2013

HTML5 defines the @list attribute for input elements, that takes an ID of a datalist element [1]. The color picker should respect this and therefore

  • if @list is present and valid and no palette is specified, use the options representing a color value given in the referenced list as palette (for both @type=color and @type=text)
  • allow a value like getFromList for the palette option.

In this test [2] the fourth input shows the desired behavior (applied manually).

[1] http://www.w3.org/TR/html5/forms.html#the-list-attribute
[2] http://jsfiddle.net/XnjzN/

@Dodo-87 Dodo-87 closed this as completed Jul 16, 2013
@Dodo-87 Dodo-87 reopened this Jul 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant