CSS attr() now works on all properties in Firefox 155. Here's how it works, and how to get the most out of it:
CSS attr() now works on all properties in Firefox 155. Here's how it works, and how to get the most out of it:
0 views
Published on 03/09/2026 13:15
2:59
CSS attr() now works on all properties in Firefox 155. Here's how it works, and how to get the most out of it:
Take a website with a strict CSP, does not allow inline CSS, makes it tricky to add per-page background images (can mess with <img>, but isn’t ideal).
Maybe the HTML attr could do something to say it’s safe for CSS?
bsky.app/profile/css-...
Maybe I've just been out of the web loop too long.
devtools css errors panel coming to a desk near you?! (it's a thing in the inspector, but we'd want this dumped like JS errors)
The rules panel will tell you when the attr() rules doesn't match expected syntax though.