Skip to content

Commit 6c6d622

Browse files
authored
Add feature for range syntax for style queries (#3579)
1 parent bc58f4f commit 6c6d622

File tree

4 files changed

+28
-18
lines changed

4 files changed

+28
-18
lines changed

features/container-style-queries.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ description: Container style queries with the `@container` at-rule apply styles
33
spec: https://drafts.csswg.org/css-conditional-5/#style-container
44
group: container-queries
55
caniuse: css-container-queries-style
6+
compat_features:
7+
- css.at-rules.container.style_queries_for_custom_properties

features/container-style-queries.yml.dist

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,10 @@
44
status:
55
baseline: false
66
support:
7-
chrome: "142"
8-
chrome_android: "142"
9-
edge: "142"
7+
chrome: "111"
8+
chrome_android: "111"
9+
edge: "111"
10+
safari: "18"
11+
safari_ios: "18"
1012
compat_features:
11-
# baseline: false
12-
# support:
13-
# chrome: "111"
14-
# chrome_android: "111"
15-
# edge: "111"
16-
# safari: "18"
17-
# safari_ios: "18"
1813
- css.at-rules.container.style_queries_for_custom_properties
19-
20-
# ⬇️ Same status as overall feature ⬇️
21-
# baseline: false
22-
# support:
23-
# chrome: "142"
24-
# chrome_android: "142"
25-
# edge: "142"
26-
- css.at-rules.container.style_queries_for_custom_properties.range_syntax
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Range syntax for style queries
2+
description: The `@container style()` CSS at-rule and `if(style())` CSS function queries accept a range syntax, such as `>`, `<`, `>=`, `<=`, to query for inexact values.
3+
spec: https://drafts.csswg.org/css-conditional-5/#typedef-style-range
4+
group: container-queries
5+
# This is a bit of an oddity, where someday this feature will split in two,
6+
# merging its constituent compat keys into `container-style-queries` and `if`.
7+
compat_features:
8+
- css.types.if.style.range_syntax
9+
- css.at-rules.container.style_queries_for_custom_properties.range_syntax
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Generated from: style-query-range-syntax.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "142"
8+
chrome_android: "142"
9+
edge: "142"
10+
compat_features:
11+
- css.at-rules.container.style_queries_for_custom_properties.range_syntax
12+
- css.types.if.style.range_syntax

0 commit comments

Comments
 (0)