From 951b5662a907dc81c222d13fb4397bd1dd271a9a Mon Sep 17 00:00:00 2001 From: James Stuckey Weber Date: Fri, 23 Aug 2024 16:04:26 -0400 Subject: [PATCH 1/4] Add forced-colors --- features/forced-colors.yml | 14 ++++++++++ features/forced-colors.yml.dist | 45 +++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 features/forced-colors.yml create mode 100644 features/forced-colors.yml.dist diff --git a/features/forced-colors.yml b/features/forced-colors.yml new file mode 100644 index 00000000000..9579efa35e2 --- /dev/null +++ b/features/forced-colors.yml @@ -0,0 +1,14 @@ +name: Forced colors +description: The `forced-colors` CSS @media rule and `forced-color-adjust` CSS property control styles when a user has chosen a limited palette of colors and is in forced colors mode. +spec: + - https://drafts.csswg.org/mediaqueries-5/#forced-colors + - https://drafts.csswg.org/css-color-adjust-1/#forced-color-adjust-prop +group: css +status: + compute_from: css.at-rules.media.forced-colors +compat_features: + - css.at-rules.media.forced-colors + - css.properties.forced-color-adjust + - css.properties.forced-color-adjust.auto + - css.properties.forced-color-adjust.none + - css.properties.forced-color-adjust.preserve-parent-color diff --git a/features/forced-colors.yml.dist b/features/forced-colors.yml.dist new file mode 100644 index 00000000000..75d6565619d --- /dev/null +++ b/features/forced-colors.yml.dist @@ -0,0 +1,45 @@ +# Generated from: forced-colors.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: low + baseline_low_date: 2022-09-12 + support: + chrome: "89" + chrome_android: "89" + edge: "79" + firefox: "89" + firefox_android: "89" + safari: "16" + safari_ios: "16" +compat_features: + # ⬇️ Same status as overall feature ⬇️ + # baseline: low + # baseline_low_date: 2022-09-12 + # support: + # chrome: "89" + # chrome_android: "89" + # edge: "79" + # firefox: "89" + # firefox_android: "89" + # safari: "16" + # safari_ios: "16" + - css.at-rules.media.forced-colors + + # baseline: false + # support: + # chrome: "89" + # chrome_android: "89" + # edge: "79" + # firefox: "113" + # firefox_android: "113" + - css.properties.forced-color-adjust + - css.properties.forced-color-adjust.auto + - css.properties.forced-color-adjust.none + + # baseline: false + # support: + # chrome: "106" + # chrome_android: "106" + # edge: "106" + - css.properties.forced-color-adjust.preserve-parent-color From 22b4ffdd77a11cef112d68d4d3897d772e0085e2 Mon Sep 17 00:00:00 2001 From: James Stuckey Weber Date: Fri, 23 Aug 2024 16:06:00 -0400 Subject: [PATCH 2/4] Edit --- features/forced-colors.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/forced-colors.yml b/features/forced-colors.yml index 9579efa35e2..888c1e604ec 100644 --- a/features/forced-colors.yml +++ b/features/forced-colors.yml @@ -1,5 +1,5 @@ name: Forced colors -description: The `forced-colors` CSS @media rule and `forced-color-adjust` CSS property control styles when a user has chosen a limited palette of colors and is in forced colors mode. +description: The `forced-colors` CSS @media rule and `forced-color-adjust` CSS property control styles when a user has chosen a limited palette of colors in forced colors mode. spec: - https://drafts.csswg.org/mediaqueries-5/#forced-colors - https://drafts.csswg.org/css-color-adjust-1/#forced-color-adjust-prop From 470857e1d6522c04083624b5dfe9843100ca947c Mon Sep 17 00:00:00 2001 From: James Stuckey Weber Date: Tue, 3 Sep 2024 11:19:13 -0400 Subject: [PATCH 3/4] Adjust forced colors description --- features/forced-colors.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/forced-colors.yml b/features/forced-colors.yml index 888c1e604ec..a8fd2d6b492 100644 --- a/features/forced-colors.yml +++ b/features/forced-colors.yml @@ -1,5 +1,5 @@ name: Forced colors -description: The `forced-colors` CSS @media rule and `forced-color-adjust` CSS property control styles when a user has chosen a limited palette of colors in forced colors mode. +description: The `forced-colors` CSS @media rule detects when a user has chosen to use a forced colors mode, also known as high-contrast mode, and the `forced-color-adjust` CSS property sets whether force colors apply to an element. spec: - https://drafts.csswg.org/mediaqueries-5/#forced-colors - https://drafts.csswg.org/css-color-adjust-1/#forced-color-adjust-prop From 36f3fcd8777c695a798ac8c44aff551d6463cdae Mon Sep 17 00:00:00 2001 From: James Stuckey Weber Date: Thu, 5 Sep 2024 09:09:31 -0400 Subject: [PATCH 4/4] Update features/forced-colors.yml Co-authored-by: Daniel D. Beck --- features/forced-colors.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/forced-colors.yml b/features/forced-colors.yml index a8fd2d6b492..3505fa3513a 100644 --- a/features/forced-colors.yml +++ b/features/forced-colors.yml @@ -1,5 +1,5 @@ name: Forced colors -description: The `forced-colors` CSS @media rule detects when a user has chosen to use a forced colors mode, also known as high-contrast mode, and the `forced-color-adjust` CSS property sets whether force colors apply to an element. +description: The `forced-colors` CSS @media rule detects when a user has chosen to use a forced colors mode, also known as high-contrast mode, and the `forced-color-adjust` CSS property sets whether forced colors apply to an element. spec: - https://drafts.csswg.org/mediaqueries-5/#forced-colors - https://drafts.csswg.org/css-color-adjust-1/#forced-color-adjust-prop