W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2020

Re: [csswg-drafts] [css-nesting] Make @nest default to descendant when no & is present (#5738)

From: Lea Verou via GitHub <sysbot+gh@w3.org>
Date: Fri, 20 Nov 2020 21:14:31 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-731410532-1605906870-sysbot+gh@w3.org>
> I prefer the explicit syntax `@nest & .bar`. I think `@nest .bar` would cause confusion (did it mean `.foo.bar`, `.foo > .bar` or `.foo .bar`?)

That might have been a good argument if this was a theoretical discussion, but we've seen how this default nesting plays out in preprocessors and nobody gets confused.

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 20 November 2020 21:14:32 UTC

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