Skip to content

Commit

Permalink
Add compat prefixed keys to recommended alternate features (#2150)
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Scholz <[email protected]>
  • Loading branch information
jamesnw and Elchi3 authored Nov 6, 2024
1 parent 280642d commit 37f6cf0
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 1 deletion.
8 changes: 8 additions & 0 deletions features/resolution-compat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: resolution media query (compatibility prefixes)
description: The `-webkit-device-pixel-ratio`, `-webkit-min-device-pixel-ratio`, and `-webkit-max-device-pixel-ratio` CSS media queries are standardized compatibility alternatives to `resolution` media queries.
spec: https://compat.spec.whatwg.org/#css-media-queries-webkit-device-pixel-ratio
group: media-queries
compat_features:
- css.at-rules.media.-webkit-device-pixel-ratio
- css.at-rules.media.-webkit-max-device-pixel-ratio
- css.at-rules.media.-webkit-min-device-pixel-ratio
19 changes: 19 additions & 0 deletions features/resolution-compat.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated from: resolution-compat.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2018-10-23
baseline_high_date: 2021-04-23
support:
chrome: "1"
chrome_android: "18"
edge: "12"
firefox: "63"
firefox_android: "63"
safari: "3"
safari_ios: "1"
compat_features:
- css.at-rules.media.-webkit-device-pixel-ratio
- css.at-rules.media.-webkit-max-device-pixel-ratio
- css.at-rules.media.-webkit-min-device-pixel-ratio
2 changes: 1 addition & 1 deletion features/resolution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: resolution media query
description: The `resolution` CSS media query sets styles based on the pixel density, or how many pixels a device uses to display a single CSS pixel.
spec: https://drafts.csswg.org/mediaqueries-5/#resolution
caniuse: css-media-resolution
# group: media-queries
group: media-queries
compat_features:
- css.at-rules.media.resolution
- css.types.resolution
Expand Down
6 changes: 6 additions & 0 deletions features/supports-compat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: "@supports (compatibility prefix)"
description: The `@supports (-webkit-transform-3d)` CSS media query is a standardized compatibility alternative to `@supports (transform-style)`.
spec: https://compat.spec.whatwg.org/#css-media-queries-webkit-transform-3d
group: media-queries
compat_features:
- css.at-rules.media.-webkit-transform-3d
17 changes: 17 additions & 0 deletions features/supports-compat.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated from: supports-compat.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2016-09-20
baseline_high_date: 2019-03-20
support:
chrome: "2"
chrome_android: "18"
edge: "12"
firefox: "49"
firefox_android: "49"
safari: "4"
safari_ios: "3.2"
compat_features:
- css.at-rules.media.-webkit-transform-3d

0 comments on commit 37f6cf0

Please sign in to comment.