Skip to content

Commit 7103517

Browse files
Add new contrast-color feature (web-platform-dx#2304)
* Add new contrast-color feature * Remove BCD key * Reserver contrast-color and make discouraged color-contrast
1 parent 72239f9 commit 7103517

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

Diff for: features/color-contrast.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: color-contrast()
2+
description: "The `color-contrast()` CSS function picks a color from a list that has the most contrast with another color."
3+
spec: https://drafts.csswg.org/css-color-5/#contrast-color
4+
group: color-types
5+
discouraged:
6+
# See these CSSWG discussions
7+
# https://github.com/w3c/csswg-drafts/issues/7557
8+
# https://github.com/w3c/csswg-drafts/issues/7359
9+
according_to:
10+
- https://github.com/w3c/csswg-drafts/issues/7557
11+
- https://github.com/w3c/csswg-drafts/commit/36594e9e8496a5ca83f1f1ee2b4a83bcdf28753b
12+
alternatives:
13+
- contrast-color

Diff for: features/color-contrast.yml.dist

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Generated from: color-contrast.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support: {}

Diff for: features/contrast-color.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: contrast-color()
2+
description: "The `contrast-color()` CSS function picks a color that has guaranteed contrast against a specified foreground or background color."
3+
spec: https://drafts.csswg.org/css-color-6/#funcdef-contrast-color
4+
group: color-types

Diff for: features/contrast-color.yml.dist

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Generated from: contrast-color.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support: {}

0 commit comments

Comments
 (0)