Limited CSS
attr()
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.
Baseline Status
Limited
Missing ≥1 target
First Core Launch
Chrome 133
2025-02-04
Core-3 Stability
Limbo (660d (1.8y))
Missing: safari
BCD Keys Mapped
16
Group: CSS
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Chrome | desktop | 133 | 2025-02-04 |
| Chrome Android | mobile | 133 | 2025-02-04 |
| Edge | desktop | 133 | 2025-02-06 |
| Firefox | desktop | 155 | 2026-09-01 |
| Firefox for Android | mobile | 155 | 2026-09-01 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| css.types.attr.declaration-value | CSS | 524d (1.4y) |
| css.types.attr.fallback | CSS | 524d (1.4y) |
| css.types.attr.type_function | CSS | 660d (1.8y) limbo |
| css.types.attr.type_function.angle | CSS | 660d (1.8y) limbo |
| css.types.attr.type_function.color | CSS | 660d (1.8y) limbo |
| css.types.attr.type_function.custom-ident | CSS | 660d (1.8y) limbo |
| css.types.attr.type_function.ident | CSS | 660d (1.8y) limbo |
| css.types.attr.type_function.image | CSS | 660d (1.8y) limbo |
| css.types.attr.type_function.integer | CSS | 660d (1.8y) limbo |
| css.types.attr.type_function.length | CSS | 660d (1.8y) limbo |
| css.types.attr.type_function.length-percentage | CSS | 660d (1.8y) limbo |
| css.types.attr.type_function.number | CSS | 660d (1.8y) limbo |
| css.types.attr.type_function.percentage | CSS | 660d (1.8y) limbo |
| css.types.attr.type_function.resolution | CSS | 660d (1.8y) limbo |
| css.types.attr.type_function.string | CSS | 660d (1.8y) limbo |
| css.types.attr.type_function.time | CSS | 660d (1.8y) limbo |