Skip to content

Conversation

ddbeck
Copy link
Collaborator

@ddbeck ddbeck commented Sep 24, 2025

A follow up to #3367. Neither the name nor the description satisfy the guidelines, so I'm suggesting we revise this to at least satisfy those requirements.

That said, I don't think this makes sense as one feature. They're rather dissimilar in what they do. If this is still open when I return next week, I'm going update this PR to split this feature in two (otherwise, I'll open a followup PR).

@ddbeck ddbeck changed the title Revise input-color-alpha name an description Revise input-color-alpha name and description Sep 24, 2025
@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Sep 24, 2025
Copy link
Collaborator

@jgraham jgraham left a comment

Choose a reason for hiding this comment

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

I think in the long run both of these properties will be merged into input type=color, so while I don't mind splitting them up, I also don't think it's necessary unless different browsers implement the two properties at different times.

description: The ability to control the opacity of a color picked using `<input type="color">` and determine the colorspace of the selected color.
name: >
alpha and colorspace attributes for <input type="color">
description: The `alpha` and `colorspace` attributes for the `<input type="color">` HTML element are hints to the browser to show controls for transparency or to limit color selection to a color space.
Copy link
Collaborator

Choose a reason for hiding this comment

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

The attributes aren't just non-normative hints, as this description suggests. If you set the alpha attribute then the browser will serialize the color with opacity data. If you set the colorspace property then the browser will serialize the color in the format for the requested colorspace.

Copy link
Contributor

Choose a reason for hiding this comment

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

How about this:

Suggested change
description: The `alpha` and `colorspace` attributes for the `<input type="color">` HTML element are hints to the browser to show controls for transparency or to limit color selection to a color space.
description: The `alpha` and `colorspace` attributes for the `<input type="color">` HTML element show controls for transparency and color space color selection in the color picker interface. Additionally, they determine the format of the selected value.

Comment on lines +1 to +2
name: >
alpha and colorspace attributes for <input type="color">
Copy link
Contributor

Choose a reason for hiding this comment

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

For consistency with features like https://web-platform-dx.github.io/web-features-explorer/features/input-number/ or https://web-platform-dx.github.io/web-features-explorer/features/dialog-closedby/, maybe we should rename this to:

Suggested change
name: >
alpha and colorspace attributes for <input type="color">
name: <input type="color" alpha> and <input type="color" colorspace>

description: The ability to control the opacity of a color picked using `<input type="color">` and determine the colorspace of the selected color.
name: >
alpha and colorspace attributes for <input type="color">
description: The `alpha` and `colorspace` attributes for the `<input type="color">` HTML element are hints to the browser to show controls for transparency or to limit color selection to a color space.
Copy link
Contributor

Choose a reason for hiding this comment

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

How about this:

Suggested change
description: The `alpha` and `colorspace` attributes for the `<input type="color">` HTML element are hints to the browser to show controls for transparency or to limit color selection to a color space.
description: The `alpha` and `colorspace` attributes for the `<input type="color">` HTML element show controls for transparency and color space color selection in the color picker interface. Additionally, they determine the format of the selected value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature definition Creating or defining new features or groups of features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants