Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles
With CSS Values and Units Level 3, the “attr” function can be used on any CSS property, plus with non-string values e.g., numbers and colors.
Last updated on : 2023-03-20
Browser Versions
IE
Edge
Firefox
Chrome
Safari
Opera
Fully Supported
Partially
No Support
CSS Values and Units Module Level 5 # attr-notation
CSS3 attr() function for all properties on IE is not supported on any IE versions.
CSS3 attr() function for all properties on Edge is not supported on any Edge versions.
CSS3 attr() function for all properties on Firefox is not supported on any Firefox versions.
CSS3 attr() function for all properties on Chrome is not supported on any Chrome versions.
CSS3 attr() function for all properties on Safari is not supported on any Safari versions.
CSS3 attr() function for all properties on Opera is not supported on any Opera versions.
CSS3 attr() function for all properties on Safari on iOS is not supported on any Safari on iOS versions.
CSS3 attr() function for all properties on Android Browser is not supported on any Android Browser versions.
CSS3 attr() function for all properties on Opera Mobile is not supported on any Opera Mobile versions.
CSS3 attr() function for all properties on Chrome for Android is not supported on any Chrome for Android versions.
CSS3 attr() function for all properties on Firefox for Android is not supported on any Firefox for Android versions.
CSS3 attr() function for all properties on Samsung Internet is not supported on any Samsung Internet versions.
Data sourced from
Overall Browser Compatibility Score
Note:CSS3 attr() function for all properties shows a browser compatibility score of 0. This is a collective score out of 100 to represent browser support of a web technology. The higher this score is, the greater is the browser compatibility. The browser compatibility score is not a 100% reflection for every browser and the web technology support. However, it does give you an estimate on how much you should rely on a particular web technology in terms of browser compatibility.
Test on 3000+ browsers for CSS3 attr() function for all properties & more
Test your website for CSS3 attr() function for all properties and other web technologies. Get 100 FREE automation test minutes!
Test NowKaneAI - Testing Assistant
World’s first AI-Powered E2E testing agent.
Did you find this page helpful?