Implement the augmentation to attr() specified in CSS Level 4, which allows types besides <string> and usage in all CSS properties (besides pseudo-element 'content'). Note: CSS Level 4 has made substantial revisions to attr() compared to Level 3 to ease the implementation. We'll following CSS4.


This is a highly requested feature, with 77 stars at We also want to keep it considered in the CR period by adding the first impelementation.



Specification link

Unknown standards status - check spec link for status

Status in Chromium


In development (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.


Search tags

css, css-values, attr,

Last updated on 2021-12-20