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

[csswg-drafts] Pull Request: [css-nesting] Fix Nesting Conditional Rules example

From: Matheus Avellar via GitHub <sysbot+gh@w3.org>
Date: Tue, 31 Aug 2021 17:13:46 +0000
To: public-css-archive@w3.org
Message-ID: <pull_request.opened-723571934-1630430024-sysbot+gh@w3.org>
MatheusAvellar has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [css-nesting] Fix Nesting Conditional Rules example ==
Current example on [Nesting Conditional Rules](https://www.w3.org/TR/css-nesting-1/#conditionals) (ยง 2.3) has an invalid parentless `& { ... }` rule:

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

  @media (orientation: landscape) {
    & {                             <--- what does & represent here?
      grid-auto-flow: column;
    }
  }
*/
```

Updated version repositions it inside `.foo`:

```css
/* equivalent to
	  .foo {
		  display: grid;
	  
		  @media (orientation: landscape) {
			  & {                           <--- & represents .foo
				  grid-auto-flow: column;
			  }
		  }
	  }
*/
```

Great proposal otherwise! Really excited for this one :)

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 31 August 2021 17:13:47 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:48 UTC