Skip to content

Commit

Permalink
Add forced-colors (#1651)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnw authored Sep 6, 2024
1 parent 03b953f commit 7e64a83
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
14 changes: 14 additions & 0 deletions features/forced-colors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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 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
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
45 changes: 45 additions & 0 deletions features/forced-colors.yml.dist
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7e64a83

Please sign in to comment.