Skip to content

Conversation

@Elchi3
Copy link
Member

@Elchi3 Elchi3 commented Jul 8, 2025

@github-actions github-actions bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML size:s [PR only] 7-24 LoC changed labels Jul 8, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@github-actions github-actions bot added size:m [PR only] 25-100 LoC changed and removed size:s [PR only] 7-24 LoC changed labels Jul 8, 2025
Comment on lines +51 to +53
"accepts_css_colors": {
"__compat": {
"description": "Accepts any CSS `<color>` value",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does "Accepts any CSS <color> value" mean here?

Isn't this feature about whether the alpha and colorspace attributes are managed?

Suggested change
"accepts_css_colors": {
"__compat": {
"description": "Accepts any CSS `<color>` value",
"accepts_alpha_and_colorspace": {
"__compat": {
"description": "Accepts any CSS `<color>` value with `alpha` and `colorspace`",

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this feature about whether the alpha and colorspace attributes are managed?

No, see also https://chromestatus.com/feature/5099982692286464 that spells this out explicitly. The <input type=color"> element used to work only with hexadecimal values but with this change it works with any CSS color value / notation.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for clarifying.

@caugner caugner changed the title Update <input type=color>: alpha and colorspace Add alpha and colorspace to <input type=color> Jul 8, 2025
Co-authored-by: Claas Augner <[email protected]>
@caugner caugner changed the title Add alpha and colorspace to <input type=color> Safari 18.4 added <input type=color> with alpha/colorspace Jul 8, 2025
@caugner caugner merged commit bd9d64c into mdn:main Jul 8, 2025
6 checks passed
@mdn-bot mdn-bot mentioned this pull request Jul 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML size:m [PR only] 25-100 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants