W3C home > Mailing lists > Public > www-style@w3.org > August 2016

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

From: Hr Gwea <hrg.wea@gmail.com>
Date: Fri, 26 Aug 2016 08:36:16 -0300
Message-ID: <CAE++px_w-xgZ8kdjBz-Jm4ai4=aTamhcCnV7nuN+_8Kr+NtoKw@mail.gmail.com>
To: www-style list <www-style@w3.org>
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:36:44 UTC

This archive was generated by hypermail 2.3.1 : Friday, 26 August 2016 11:36:44 UTC