From 6b9e728ef488cd1b803b550e5ccbc2a5ef002afd Mon Sep 17 00:00:00 2001 From: James Graham Date: Fri, 19 Sep 2025 11:42:07 +0100 Subject: [PATCH 1/3] Split out alpha and colorspace properties from input type=color These are recent additions to the spec that don't affect the utility of the original input type=color and don't have the same level of cross-browser support. It's unclear if `alpha` and `colorspace` should be a single feature; browsers could implement one without the other. However they were added in the same HTML PR, so this seems like a reasonable guess for now. --- features/input-color-alpha.yml | 11 +++++++++++ features/input-color-alpha.yml.dist | 13 +++++++++++++ features/input-color.yml | 7 ------- features/input-color.yml.dist | 18 ------------------ 4 files changed, 24 insertions(+), 25 deletions(-) create mode 100644 features/input-color-alpha.yml create mode 100644 features/input-color-alpha.yml.dist diff --git a/features/input-color-alpha.yml b/features/input-color-alpha.yml new file mode 100644 index 00000000000..eabaad37b2c --- /dev/null +++ b/features/input-color-alpha.yml @@ -0,0 +1,11 @@ +name: opacity and colorspace in '' +description: The ability to control the opacity of a color picked using `` and determine the colorspace of the selected color. +spec: https://html.spec.whatwg.org/multipage/input.html#attr-input-alpha +group: + - forms + - html-elements +compat_features: + - api.HTMLInputElement.alpha + - api.HTMLInputElement.colorSpace + - html.elements.input.alpha + - html.elements.input.colorspace diff --git a/features/input-color-alpha.yml.dist b/features/input-color-alpha.yml.dist new file mode 100644 index 00000000000..cf67cdd8849 --- /dev/null +++ b/features/input-color-alpha.yml.dist @@ -0,0 +1,13 @@ +# Generated from: input-color-alpha.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: false + support: + safari: "18.4" + safari_ios: "18.4" +compat_features: + - api.HTMLInputElement.alpha + - api.HTMLInputElement.colorSpace + - html.elements.input.alpha + - html.elements.input.colorspace diff --git a/features/input-color.yml b/features/input-color.yml index 2bba6214e9c..4d01ed950f8 100644 --- a/features/input-color.yml +++ b/features/input-color.yml @@ -5,12 +5,5 @@ group: - forms - html-elements caniuse: input-color -status: - compute_from: - - html.elements.input.type_color compat_features: - - api.HTMLInputElement.alpha - - api.HTMLInputElement.colorSpace - - html.elements.input.alpha - - html.elements.input.colorspace - html.elements.input.type_color diff --git a/features/input-color.yml.dist b/features/input-color.yml.dist index 68f489dfc55..3e109874032 100644 --- a/features/input-color.yml.dist +++ b/features/input-color.yml.dist @@ -11,22 +11,4 @@ status: safari: "12.1" safari_ios: "12.2" compat_features: - # ⬇️ Same status as overall feature ⬇️ - # baseline: false - # support: - # chrome: "20" - # chrome_android: "25" - # edge: "14" - # firefox: "29" - # safari: "12.1" - # safari_ios: "12.2" - html.elements.input.type_color - - # baseline: false - # support: - # safari: "18.4" - # safari_ios: "18.4" - - api.HTMLInputElement.alpha - - api.HTMLInputElement.colorSpace - - html.elements.input.alpha - - html.elements.input.colorspace From f740c01381ee6e1af6e661d53e09875bebe0bfdd Mon Sep 17 00:00:00 2001 From: jgraham Date: Mon, 22 Sep 2025 09:20:10 +0100 Subject: [PATCH 2/3] Update features/input-color-alpha.yml Co-authored-by: Patrick Brosset --- features/input-color-alpha.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/input-color-alpha.yml b/features/input-color-alpha.yml index eabaad37b2c..e7c63ae7c98 100644 --- a/features/input-color-alpha.yml +++ b/features/input-color-alpha.yml @@ -1,4 +1,4 @@ -name: opacity and colorspace in '' +name: `alpha` and `colorspace` attributes for `` description: The ability to control the opacity of a color picked using `` and determine the colorspace of the selected color. spec: https://html.spec.whatwg.org/multipage/input.html#attr-input-alpha group: From ab9f659904cc71d3e639c74933851bb91ce8e068 Mon Sep 17 00:00:00 2001 From: jgraham Date: Mon, 22 Sep 2025 09:33:14 +0100 Subject: [PATCH 3/3] Update features/input-color-alpha.yml --- features/input-color-alpha.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/input-color-alpha.yml b/features/input-color-alpha.yml index e7c63ae7c98..bfde5e2c33a 100644 --- a/features/input-color-alpha.yml +++ b/features/input-color-alpha.yml @@ -1,4 +1,4 @@ -name: `alpha` and `colorspace` attributes for `` +name: "`alpha` and `colorspace` attributes for ``" description: The ability to control the opacity of a color picked using `` and determine the colorspace of the selected color. spec: https://html.spec.whatwg.org/multipage/input.html#attr-input-alpha group: