3 ms·
Interesting, this works in Chrome for me but it uses attr() in CSS and CanIUse says that's not usable: http://caniuse.com/#feat=css3-attr http://caniuse.com/#f
by throwaway2016a 10y ago
Interesting, this works in Chrome for me but it uses attr() in CSS and CanIUse says that's not usable:
http://caniuse.com/#feat=css3-attr http://caniuse.com/#feat=css3-attr
I've never seen that website be wrong so I'm slightly confused.
- RussianCow 10y agoIf you read closer: CSS Values and Units Level 3 adds the ability to use attr() on any CSS property, not just content, and to use it for non-string values (e.g. numbers, colors). It's not attr that's unusable, but rather being able to use it on any arbitrary CSS property. Though I'm surprised they don't have a separate entry for just the attr function alone.