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

Firefox v1 (2004-11-09) Safari v3.1 (2008-03-18) Safari on iOS v2 (2008-07-11) Chrome v2 (2009-05-21) Firefox for Android v4 (2011-03-29) Chrome Android v18 (2012-06-27) Edge v12 (2015-07-29)
Green dot marks the first browser release (2004-11-09); blue dots show subsequent browser launches (+3914d total span).

Browser Support Releases

BrowserTypeVersionRelease 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 KeyAreaCore-3 TTA
css.types.attr CSS 1,654d (4.5y)