Skip to content

Commit e15bc03

Browse files
committed
Pin advanced attr() support to the <fallback> syntax
There is no BCD entry for attr() working outside of the content property for pseudo-elements, but the <fallback> syntax works because apparently the change was done at the same time. This matches https://chromestatus.com/feature/4680129030651904
1 parent 8e36dd3 commit e15bc03

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

features/attr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ 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+
status:
7+
compute_from: css.types.attr.fallback
68
compat_features:
79
# The css.types.attr key makes sense here but is already used in `contents-attr`
810
#- css.types.attr

features/attr.yml.dist

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,18 @@
22
# Do not edit this file by hand. Edit the source file instead!
33

44
status:
5-
baseline: false
6-
support: {}
5+
baseline: low
6+
baseline_low_date: 2025-03-31
7+
support:
8+
chrome: "133"
9+
chrome_android: "133"
10+
edge: "133"
11+
firefox: "119"
12+
firefox_android: "119"
13+
safari: "18.4"
14+
safari_ios: "18.4"
715
compat_features:
16+
# ⬇️ Same status as overall feature ⬇️
817
# baseline: low
918
# baseline_low_date: 2025-03-31
1019
# support:
@@ -24,7 +33,6 @@ compat_features:
2433
# edge: "133"
2534
- css.types.attr.type-or-unit
2635

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

0 commit comments

Comments
 (0)