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

I too was sad that this did not work.  I had to turn something elegant:

```
.nav ol li.active ~ .indicator {
  transform: translateX(calc(70px * calc(counter(list-item) - 1)));
}
```

into a whole string of hideous and fragile:


```
.nav ol li:nth-child(0).active ~ .indicator {
  transform: translateX(calc(70px * 0));
}
    ... cases 1..11 here ...

.nav ol li:nth-child(12).active ~ .indicator {
  transform: translateX(calc(70px * 12));
}
```

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


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

Received on Thursday, 10 November 2022 02:29:12 UTC