I want access to attr() within calc()

Submitted by Radoslav Sharapanov

We have access to attribute values (via attr()) in generated content. It would be nice to have that access elsewhere too. For example, it could be useful to access a data-* attribute and pull that value into a calculated width (using calc()).

Tagged
CSS