Baseline Widely CSS
attr() (content only)
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.
Baseline Status
Widely Available
Since 2015-07-29
First Core Launch
Firefox 1
2004-11-09
Core-3 Stability
1,654d (4.5y)
Last: Chrome (2009-05-21)
BCD Keys Mapped
1
Group: CSS
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Firefox | desktop | 1 | 2004-11-09 |
| Safari | desktop | 3.1 | 2008-03-18 |
| Safari on iOS | mobile | 2 | 2008-07-11 |
| Chrome | desktop | 2 | 2009-05-21 |
| Firefox for Android | mobile | 4 | 2011-03-29 |
| Chrome Android | mobile | 18 | 2012-06-27 |
| Edge | desktop | 12 | 2015-07-29 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| css.types.attr | CSS | 1,654d (4.5y) |