W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2018

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

From: Wes via GitHub <sysbot+gh@w3.org>
Date: Sat, 16 Jun 2018 08:57:56 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-332973215-1529139475-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Saturday, 2 July 2022 03:21:09 UTC