Is there currently any way to access “Add to Custom Colors” or other (local, browser or OS specific) extensions in the <input type="color">
Element?
(Old Aero theme example, as seen in Firefox.) This is probably a Windows-specific… quirk? vestige, even? — but, it’s interesting to me that the “Custom colors:” list can be populated from a datalist
Element (via the list
attribute), and also from within the dialog; but this state is lost when the dialog is closed, and it is re-initialized from the attached list with no state ever passed back to the document.
The MDN documentation for instance, doesn’t mention anything specific, but I take that to mean there isn’t anything currently developed for Firefox, nor stipulated in the underlying standard; but that doesn’t mean no browsers support such means.
To be clear, I would expect — if such a feature exists on any platform — it might present as an array of color strings in the corresponding input
event, or perhaps even the underling datalist
is mutated to match (when so enabled by the document). But there are lots of ways this could be handled; my question is, was this ever done?
I’m also guessing, if such a feature exists anywhere at all, it’s far from portable, so, I don’t intend on using this for any actual content, just curious if this has been toyed with before. And I expect there are more featureful libraries that provide such functionality natively [in JS and etc.], but this is also not my concern here.