Skip to content

Commit c4bfc5d

Browse files
committed
Manually set the support status of advanced attr()
There is no BCD entry for attr() working outside of the content property for pseudo-elements, so this is the only way right now.
1 parent 8e36dd3 commit c4bfc5d

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

features/attr.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ description: "The `attr()` CSS function, in the context of any property, returns
33
spec: https://drafts.csswg.org/css-values-5/#attr-notation
44
caniuse: css3-attr
55
group: css
6+
# There is no BCD entry for attr() support beyond the `contents` property
7+
# (a.k.a. advanced attr()) so the status here is maintained manually, matching
8+
# https://caniuse.com/css3-attr and https://chromestatus.com/feature/4680129030651904.
9+
status:
10+
baseline: false
11+
support:
12+
chrome: "133"
13+
chrome_android: "133"
14+
edge: "133"
615
compat_features:
716
# The css.types.attr key makes sense here but is already used in `contents-attr`
817
#- css.types.attr

features/attr.yml.dist

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Generated from: attr.yml
22
# Do not edit this file by hand. Edit the source file instead!
33

4-
status:
5-
baseline: false
6-
support: {}
74
compat_features:
85
# baseline: low
96
# baseline_low_date: 2025-03-31
@@ -17,14 +14,14 @@ compat_features:
1714
# safari_ios: "18.4"
1815
- css.types.attr.fallback
1916

17+
# ⬇️ Same status as overall feature ⬇️
2018
# baseline: false
2119
# support:
2220
# chrome: "133"
2321
# chrome_android: "133"
2422
# edge: "133"
2523
- css.types.attr.type-or-unit
2624

27-
# ⬇️ Same status as overall feature ⬇️
2825
# baseline: false
2926
# support: {}
3027
- css.types.attr.type-or-unit.angle

0 commit comments

Comments
 (0)