CSS3 attr() function for all properties

- CR

While attr() is supported for effectively all browsers for the content property, CSS Values and Units Level 3 adds the ability to use attr() on any CSS property, and to use it for non-string values (e.g. numbers, colors).

IE

  1. 5.5 - 10: Not supported
  2. 11: Not supported

Edge

  1. 12 - 85: Not supported
  2. 86: Not supported

Firefox

  1. 2 - 80: Not supported
  2. 81: Not supported
  3. 82 - 83: Not supported

Chrome

  1. 4 - 85: Not supported
  2. 86: Not supported
  3. 87 - 89: Not supported

Safari

  1. 3.1 - 13.1: Not supported
  2. 14: Not supported
  3. TP: Not supported

Opera

  1. 9 - 70: Not supported
  2. 71: Not supported

iOS Safari

  1. 3.2 - 13.7: Not supported
  2. 14: Not supported

Opera Mini

  1. all: Not supported

Android Browser

  1. 2.1 - 4.4.4: Not supported
  2. 81: Not supported

Blackberry Browser

  1. 7: Not supported
  2. 10: Not supported

Opera Mobile

  1. 10 - 12.1: Not supported
  2. 59: Not supported

Chrome for Android

  1. 85: Not supported

Firefox for Android

  1. 79: Not supported

IE Mobile

  1. 10: Not supported
  2. 11: Not supported

UC Browser for Android

  1. 12.12: Not supported

Samsung Internet

  1. 4 - 11.2: Not supported
  2. 12.0: Not supported

QQ Browser

  1. 10.4: Not supported

Baidu Browser

  1. 7.12: Not supported

KaiOS Browser

  1. 2.5: Not supported

See the generated content table for support for attr() for the content property.

Resources:
Chromium issue #246571: Implement CSS3 attribute / attr references
WebKit Bug #26609: Support CSS3 attr() function
Mozilla Bug #435426: implement css3-values extensions to `attr()`
MDN Web Docs - CSS attr
Microsoft Edge feature request on UserVoice