Intent to ship: colorspace and alpha attributes for `<input type=color>`

43 views
Skip to first unread message

Kagami Rosylight

unread,
Jan 14, 2026, 11:29:46 AM (yesterday) Jan 14
to dev-pl...@mozilla.org
Summary: The new colorspace and alpha attributes controls the output by color picking, e.g using the new color() syntax in the designated colorspace.
Standards Body: WHATWG
Platform coverage: All
Preference: dom.forms.colorspace_and_alpha.enabled
Link to standards-positions discussionhttps://github.com/mozilla/standards-positions/issues/1230

This is happening in parallel with the color picker change, the picker will not have the colorspace and alpha support until we fix all known UX issues and decide to ship the new color picker, with the intent to prototype here. If display-p3 is requested by colorspace attribute, the picker will remain in sRGB for now and then be converted to display-p3 in the value string. Requesting alpha will only affect the output format without actual alpha selection for now, unless you are in Nightly.

We also changed the style rule for ::-moz-color-swatch to represent alpha channel in the color button. We do not know of any web usage of this legacy proprietary pseudo element in a way to affect the color, but if you do or are affected, please feel free to report.
Reply all
Reply to author
Forward
0 new messages