Skip to content

Commit f57b40a

Browse files
vwallencaptainbrossetddbeck
authored
Adds attr features (#2109)
Co-authored-by: Patrick Brosset <[email protected]> Co-authored-by: Daniel D. Beck <[email protected]>
1 parent 1d7f6b0 commit f57b40a

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed

features/attr-contents.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: attr() (content only)
2+
description: "The `attr()` CSS function, in `content` property declarations, sets a `::before` or `::after` pseudo-element's content to the value of the specified HTML attribute."
3+
spec: https://drafts.csswg.org/css-values-5/#attr-notation
4+
group: css
5+
compat_features:
6+
- css.types.attr

features/attr-contents.yml.dist

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated from: attr-contents.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: high
6+
baseline_low_date: 2015-07-29
7+
baseline_high_date: 2018-01-29
8+
support:
9+
chrome: "2"
10+
chrome_android: "18"
11+
edge: "12"
12+
firefox: "1"
13+
firefox_android: "4"
14+
safari: "3.1"
15+
safari_ios: "2"
16+
compat_features:
17+
- css.types.attr

features/attr.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: attr()
2+
description: "The `attr()` CSS function, in the context of any property, returns the value of an attribute of an HTML element, with the option to return it as a specific type or unit. You can set a default value for missing or invalid attributes."
3+
spec: https://drafts.csswg.org/css-values-5/#attr-notation
4+
caniuse: css3-attr
5+
group: css
6+
compat_features:
7+
# The css.types.attr key makes sense here but is already used in `contents-attr`
8+
#- css.types.attr
9+
- css.types.attr.fallback
10+
- css.types.attr.type-or-unit
11+
- css.types.attr.type-or-unit.angle
12+
- css.types.attr.type-or-unit.color
13+
- css.types.attr.type-or-unit.frequency
14+
- css.types.attr.type-or-unit.integer
15+
- css.types.attr.type-or-unit.length
16+
- css.types.attr.type-or-unit.number
17+
- css.types.attr.type-or-unit.percentage
18+
- css.types.attr.type-or-unit.time
19+
- css.types.attr.type-or-unit.url

features/attr.yml.dist

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Generated from: attr.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support: {}
7+
compat_features:
8+
# baseline: false
9+
# support:
10+
# firefox: "119"
11+
# firefox_android: "119"
12+
- css.types.attr.fallback
13+
14+
# ⬇️ Same status as overall feature ⬇️
15+
# baseline: false
16+
# support: {}
17+
- css.types.attr.type-or-unit
18+
- css.types.attr.type-or-unit.angle
19+
- css.types.attr.type-or-unit.color
20+
- css.types.attr.type-or-unit.frequency
21+
- css.types.attr.type-or-unit.integer
22+
- css.types.attr.type-or-unit.length
23+
- css.types.attr.type-or-unit.number
24+
- css.types.attr.type-or-unit.percentage
25+
- css.types.attr.type-or-unit.time
26+
- css.types.attr.type-or-unit.url

0 commit comments

Comments
 (0)