W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2021

Re: [csswg-drafts] [css-nesting-1] Allow conditional nested rules to adopt context (#6483)

From: Adam Argyle via GitHub <sysbot+gh@w3.org>
Date: Mon, 02 Aug 2021 21:53:49 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-891359090-1627941227-sysbot+gh@w3.org>
request for `agenda+` because we need help resolving some syntax:

**Current**
```css
.foo {
  display: grid;

  @media (orientation: landscape) {
    & {
      grid-auto-flow: column;
    }
  }
}
```

**Proposed**
```css
.foo {
  display: grid;

  @media (orientation: landscape) {
    grid-auto-flow: column;
  }
}
```

It's an exception to the unambiguous `&` pattern established by the nesting 1 spec but also very popular syntactic sugar.

-- 
GitHub Notification of comment by argyleink
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/6483#issuecomment-891359090 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 2 August 2021 21:53:51 UTC

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