Re: [css-values] CSS counters inside CALC function

Here is a jsfiddle with a working example:
https://jsfiddle.net/eyqcdr62/


On Fri, Aug 26, 2016 at 8:36 AM, Hr Gwea <hrg.wea@gmail.com> wrote:

> I hit ENTER too soon:
>
> The point of the example is that it could be done so much easier with
> counters.
> Like this:
>
> div {counter-reset: pos}
>
> e {counter-increment: pos; transform: rotate( calc( 30deg * counter(pos)
>> ) ) translateY(50px) }
>
>
> Could you add this to the spec?
>
>
>

Received on Friday, 26 August 2016 11:38:10 UTC