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

Re: [csswg-drafts] [css-nesting] request to pick up the css-nesting proposal

From: Jonathan Neal via GitHub <sysbot+gh@w3.org>
Date: Fri, 01 Jun 2018 17:48:40 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-393958517-1527875319-sysbot+gh@w3.org>
@tobireif, have you experimented with nesting in a manner that reflects the current spec? While it isn’t 1:1 like Sass, I eventually preferred it because it was easy to scan and explicit without adding many characters (typically only one, `&`):

#main {
  color: black;

  & a {
    font-weight: bold;

  @nest main > & {
    color: navy;

You _can_ experiment with it here: https://preset-env.cssdb.org/playground (I hope everyone will forgive my sharing that link, as I try hard not to seem like a salesperson.)

GitHub Notification of comment by jonathantneal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2701#issuecomment-393958517 using your GitHub account
Received on Friday, 1 June 2018 17:48:44 UTC

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