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

My sad excuse of a utility without this feature...

```css
...
.count--3 { --count: 3 }
.count--4 { --count: 4 }
.count--5 { --count: 5 }
...
.count > *:nth-child(1) { --count-current: 1 }
.count > *:nth-child(2) { --count-current: 2 }
.count > *:nth-child(3) { --count-current: 3 }
...
.el {
  animation-delay: calc((var(--count, 0) - var(--count-current, 0)) * 0.1s);
} 
```

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

Received on Sunday, 29 April 2018 23:09:22 UTC