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

Re: [csswg-drafts] [selectors] some inconsistent concepts and descriptions

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Wed, 03 Jan 2018 21:11:31 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-355128300-1515013889-sysbot+gh@w3.org>
I'd have to rewrite `<relative-selector>`, too, to avoid an infinite loop there. ;) It would be 

```
<complex-selector> = <compound-selector> <relative-selector>*
<relative-selector> = [ <combinator>? <compound-selector> ]+
```

instead of

```
<complex-selector> = <compound-selector> [ <combinator>? <compound-selector> ]*
<relative-selector> = <combinator>? <complex-selector>
```

Upside is it's slightly simpler grammar, downside I guess is that <complex-selector> is a more fundamental concept in CSS. I don't have a strong opinion either way. @dbaron / @tabatkins ?

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/386#issuecomment-355128300 using your GitHub account
Received on Wednesday, 3 January 2018 21:11:32 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:22 UTC