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

Two more use cases:

- Staggered animations by using it in `animation-delay`
- Reversing the z-index order by using it in `z-index`

Regarding syntax, I like @tabatkins's proposal for a new formatting argument, if an explicit syntax is required.
Although IMO ideally it would be nice if we could auto cast number-like strings to numbers in `calc()` akin to how many programming languages do it (including JS). It's not like strings actually do anything in `calc()`, so there's no disambiguation problem.

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

Received on Sunday, 29 April 2018 22:13:48 UTC