Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions features/input-color-alpha.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: "`alpha` and `colorspace` attributes for `<input type=color>`"
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">
Comment on lines +1 to +2
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 `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.

spec: https://html.spec.whatwg.org/multipage/input.html#attr-input-alpha
group:
- forms
Expand Down