I think it would be nice to be able to use counter() function outside of CSS content -- e.g. for indents.
I suggest data type specification using attr() syntax, e.g. width: counter(my-counter px).
width: counter(my-counter px)
Could you describe the use case in more detail? I’m interested if it’s possible with CSS today.