Skip to content

Conversation

Elchi3
Copy link
Member

@Elchi3 Elchi3 commented Jul 8, 2025

Description

<input type=color> changed quite a bit. It now allows more than just hexadecimal values. You can now have alpha components as well as color spaces.

Motivation

Fix outdated docs.

Additional details

Spec: https://html.spec.whatwg.org/multipage/input.html#color-state-(type=color)
Blog post: https://webkit.org/blog/16900/p3-and-alpha-color-pickers/

Related issues and pull requests

Fixes #35953
BCD: mdn/browser-compat-data#27260

@Elchi3 Elchi3 requested review from a team as code owners July 8, 2025 15:05
@Elchi3 Elchi3 requested review from estelle and sideshowbarker and removed request for a team July 8, 2025 15:05
@github-actions github-actions bot added Content:HTML Hypertext Markup Language docs Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed labels Jul 8, 2025
Copy link
Contributor

github-actions bot commented Jul 8, 2025

Preview URLs

Flaws (4)

Note! 2 documents with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/API/HTMLInputElement
Title: HTMLInputElement
Flaw count: 3

  • macros:
    • Can't resolve /en-US/docs/Web/API/HTMLInputElement/align
    • Can't resolve /en-US/docs/Web/API/HTMLInputElement/incremental
    • Can't resolve /en-US/docs/Web/API/HTMLInputElement/useMap

URL: /en-US/docs/Web/HTML/Reference/Elements/input/color
Title: <input type="color">
Flaw count: 1

  • unknown:
    • must be provided

(comment last updated: 2025-08-19 20:10:56)

Copy link
Contributor

github-actions bot commented Jul 9, 2025

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot added the merge conflicts 🚧 [PR only] label Jul 9, 2025
@sideshowbarker sideshowbarker removed their request for review July 10, 2025 02:33
Copy link
Member

@estelle estelle left a comment

Choose a reason for hiding this comment

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

we might want to add a link to color from the color space glossary page

@github-actions github-actions bot removed the merge conflicts 🚧 [PR only] label Jul 10, 2025
Elchi3 and others added 2 commits July 10, 2025 15:14
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@Elchi3
Copy link
Member Author

Elchi3 commented Jul 10, 2025

Thanks for your review, Estelle! I made some tweaks, what do you think?

@Elchi3 Elchi3 requested a review from estelle July 10, 2025 13:32
Copy link
Member

@estelle estelle left a comment

Choose a reason for hiding this comment

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

i edited the two suggestions i originally made that you responded to; i think they'll be acceptable to commit now. Otherwise, good to go.

Copy link
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

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

Nice

@Josh-Cena Josh-Cena merged commit 6d4ac4a into mdn:main Aug 19, 2025
8 checks passed
@Elchi3 Elchi3 deleted the input-color branch August 19, 2025 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:HTML Hypertext Markup Language docs Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document <input type=color alpha colorspace=display-p3>

4 participants