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

[csswg-drafts] Pull Request: [css-nesting-1] initial idea for nested conditionals

From: Adam Argyle via GitHub <sysbot+gh@w3.org>
Date: Wed, 21 Oct 2020 17:53:39 +0000
To: public-css-archive@w3.org
Message-ID: <pull_request.opened-507754789-1603302817-sysbot+gh@w3.org>
argyleink has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [css-nesting-1] initial idea for nested conditionals ==
[css-nesting-1] 
This PR adds a section on nesting conditionals and provides a small set of examples to get the conversation started.

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

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

/* equivalent to */
.foo { display: grid; }

@media (orientation: portrait) {
  .foo { 
    grid-auto-flow: column; 
  }
}
```

fixes https://github.com/tabatkins/specs/issues/56


See https://github.com/w3c/csswg-drafts/pull/5645


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 21 October 2020 17:53:41 UTC

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