Re: [csswg-drafts] [css-cascade] Additive CSS

I had to write something like this today, overspecifying and repeating myself, explicitly accounting for all possible permutations of combined counter incrementing utilities.
```css
.ut-count-1                       { counter-increment: utCount1; }
.ut-count-2                       { counter-increment: utCount2; }
.ut-count-3                       { counter-increment: utCount3; }
.ut-count-1.ut-count-2            { counter-increment: utCount1 utCount2; }
.ut-count-1.ut-count-3            { counter-increment: utCount1 utCount3; }
.ut-count-2.ut-count-3            { counter-increment: utCount2 utCount3; }
.ut-count-1.ut-count-2.ut-count-3 { counter-increment: utCount1 utCount2 utCount3; }
```
```html
<li class="ut-count-1"></li>
<li class="ut-count-1 ut-count-2"></li>
<li class="ut-count-1 ut-count-2 ut-count-3"></li>
...
```

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

Received on Thursday, 19 April 2018 16:00:31 UTC