Skip to content

Commit 6b9e728

Browse files
committed
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.
1 parent 531d7ad commit 6b9e728

File tree

4 files changed

+24
-25
lines changed

4 files changed

+24
-25
lines changed

features/input-color-alpha.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: opacity and colorspace in '<input type="color">'
2+
description: The ability to control the opacity of a color picked using `<input type="color">` and determine the colorspace of the selected color.
3+
spec: https://html.spec.whatwg.org/multipage/input.html#attr-input-alpha
4+
group:
5+
- forms
6+
- html-elements
7+
compat_features:
8+
- api.HTMLInputElement.alpha
9+
- api.HTMLInputElement.colorSpace
10+
- html.elements.input.alpha
11+
- html.elements.input.colorspace
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Generated from: input-color-alpha.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
safari: "18.4"
8+
safari_ios: "18.4"
9+
compat_features:
10+
- api.HTMLInputElement.alpha
11+
- api.HTMLInputElement.colorSpace
12+
- html.elements.input.alpha
13+
- html.elements.input.colorspace

features/input-color.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,5 @@ group:
55
- forms
66
- html-elements
77
caniuse: input-color
8-
status:
9-
compute_from:
10-
- html.elements.input.type_color
118
compat_features:
12-
- api.HTMLInputElement.alpha
13-
- api.HTMLInputElement.colorSpace
14-
- html.elements.input.alpha
15-
- html.elements.input.colorspace
169
- html.elements.input.type_color

features/input-color.yml.dist

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,4 @@ status:
1111
safari: "12.1"
1212
safari_ios: "12.2"
1313
compat_features:
14-
# ⬇️ Same status as overall feature ⬇️
15-
# baseline: false
16-
# support:
17-
# chrome: "20"
18-
# chrome_android: "25"
19-
# edge: "14"
20-
# firefox: "29"
21-
# safari: "12.1"
22-
# safari_ios: "12.2"
2314
- html.elements.input.type_color
24-
25-
# baseline: false
26-
# support:
27-
# safari: "18.4"
28-
# safari_ios: "18.4"
29-
- api.HTMLInputElement.alpha
30-
- api.HTMLInputElement.colorSpace
31-
- html.elements.input.alpha
32-
- html.elements.input.colorspace

0 commit comments

Comments
 (0)