Skip to content

Commit ed09a14

Browse files
authored
Add relative-color.dist.yml (#998)
Matches https://caniuse.com/css-relative-colors.
1 parent 8715879 commit ed09a14

File tree

2 files changed

+49
-6
lines changed

2 files changed

+49
-6
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Generated from: relative-color.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
name: Relative colors
5+
description: "The `from` keyword for color functions (`color()`, `hsl()`, `oklch()`, etc.) creates a new color based on a given color by modifying the values of the input color. Also known as relative color syntax (RCS)."
6+
spec: https://drafts.csswg.org/css-color-5/#relative-colors
7+
caniuse: css-relative-colors
8+
usage_stats: https://chromestatus.com/metrics/feature/timeline/popularity/4632
9+
status:
10+
baseline: false
11+
support:
12+
chrome: "119"
13+
chrome_android: "119"
14+
edge: "119"
15+
safari: "16.4"
16+
safari_ios: "16.4"
17+
# TODO: Revisit when this has shipped in Firefox if we should retroactively
18+
# claim partial support in Chrome and Safari for some versions. If so, also make
19+
# the same changes in caniuse.
20+
compat_features:
21+
# These are the only two features that don't use partial implementation for
22+
# some browser, so they can represent initial support for the feature.
23+
- css.types.color.lab.relative_syntax
24+
- css.types.color.oklab.relative_syntax
25+
# Partial implementation claims that need further research, see
26+
# https://github.com/mdn/browser-compat-data/issues/22961
27+
# - css.types.color.color.relative_syntax
28+
# - css.types.color.hsl.relative_syntax
29+
# - css.types.color.hwb.relative_syntax
30+
# - css.types.color.lch.relative_syntax
31+
# - css.types.color.oklch.relative_syntax
32+
# Seemingly incorrect notes, see
33+
# https://github.com/mdn/browser-compat-data/pull/22960
34+
# - css.types.color.rgb.relative_syntax

feature-group-definitions/relative-color.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,21 @@ description: "The `from` keyword for color functions (`color()`, `hsl()`, `oklch
33
spec: https://drafts.csswg.org/css-color-5/#relative-colors
44
caniuse: css-relative-colors
55
usage_stats: https://chromestatus.com/metrics/feature/timeline/popularity/4632
6+
# TODO: Revisit when this has shipped in Firefox if we should retroactively
7+
# claim partial support in Chrome and Safari for some versions. If so, also make
8+
# the same changes in caniuse.
69
compat_features:
7-
- css.types.color.color.relative_syntax
8-
- css.types.color.hsl.relative_syntax
9-
- css.types.color.hwb.relative_syntax
10+
# These are the only two features that don't use partial implementation for
11+
# some browser, so they can represent initial support for the feature.
1012
- css.types.color.lab.relative_syntax
11-
- css.types.color.lch.relative_syntax
1213
- css.types.color.oklab.relative_syntax
13-
- css.types.color.oklch.relative_syntax
14-
- css.types.color.rgb.relative_syntax
14+
# Partial implementation claims that need further research, see
15+
# https://github.com/mdn/browser-compat-data/issues/22961
16+
# - css.types.color.color.relative_syntax
17+
# - css.types.color.hsl.relative_syntax
18+
# - css.types.color.hwb.relative_syntax
19+
# - css.types.color.lch.relative_syntax
20+
# - css.types.color.oklch.relative_syntax
21+
# Seemingly incorrect notes, see
22+
# https://github.com/mdn/browser-compat-data/pull/22960
23+
# - css.types.color.rgb.relative_syntax

0 commit comments

Comments
 (0)