[csswg-drafts] [css-selectors] repeating selectors

Netmosfera has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-selectors] repeating selectors ==
Hello,

```
section > div repeat(> ul > li) { /* ... */ }

which is equal to writing 

section > div > ul > li,
section > div > ul > li > ul > li,
section > div > ul > li > ul > li > ul > li,
section > div > ul > li > ul > li > ul > li > ul > li,
section > div > ul > li > ul > li > ul > li > ul > li > ul > li,
... {}
```

The specificity would be the same of the matched "splatted"  selector. Having this would solve a lot of  problems derived from too generic css selectors' specificity that designers often encounter.

Would this make sense to have?

Thank you for reading this. This is my third request in very short time, I promise I will shut up now :-P


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2792 using your GitHub account

Received on Saturday, 16 June 2018 08:58:04 UTC