Re: [csswg-drafts] [css-values] enable the use of counter() inside calc() (#1026)

> Rather than counters, you may have better luck with `inherit()`, already approved by CSSWG resolution: [#2864 (comment)](https://github.com/w3c/csswg-drafts/issues/2864#issuecomment-816280875)

Neat! I couldn't get to it in my research! Thanks!


> Note that with counters aren't probably what you want for depth

Yes, I was aware my example could fail somehow (I did see it fail by a quick test **writing** `counter(tag-depth)` on `content` property but thought maybe there was a way a through - and I was out of options, anyway), as in fact I made it from an actual code I started in the lines of the **second** example I gave. First made it when sure it would work and on a train of thought that is exactly what inherit() seems to do but, on no avail, following research brought me to counters and here.

Again, thank you so much for your help! =)

-- 
GitHub Notification of comment by JJanz
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1026#issuecomment-1029265449 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 3 February 2022 18:13:19 UTC