CSS attr() now works on all properties in Firefox 155. Here's how it works, and how to get the most out of it:
26 reposts169 likes
CSS attr() now works on all properties in Firefox 155. Here's how it works, and how to get the most out of it:
26 reposts169 likes
It would be good to make a short video about the <custom-ident> case that will confuse many people, thinking they are <string> instead. bsky.app/profile/css-...
It seems you had the confusion I see a lot. Keyword values are not "string" but "custom-ident" so you can use the value auto (as well as other keyword) like below: [mx] { margin-inline: attr(mx type(<custom-ident>)); } codepen.io/t_afif/pen/p...
The full docs on MDN: developer.mozilla.org/en-US/docs/W...