- From: John Hascall via GitHub <sysbot+gh@w3.org>
- Date: Thu, 10 Nov 2022 02:29:10 +0000
- To: public-css-archive@w3.org
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