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

Here's another way this feature could be used : decreasing the size of siblings.

```css
.circles { 
  counter-reset: n;
 }
 
.circles circle {
counter-increment: n;
width:calc(100% / counter(n)  );
}
```

Is there any hope to get something like this in CSS one day or is that a task more suited for javascript ?

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


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

Received on Tuesday, 1 February 2022 14:26:23 UTC