[csswg-drafts] [css-nesting]The parent selector should not be placed inside the subselector

wangmeijian has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-nesting]The parent selector should not be placed inside the subselector ==
About [The Nesting At-Rule: @nest](https://tabatkins.github.io/specs/css-nesting/#at-ruledef-nest)
```css
.foo {
  color: red;
  @nest .parent & {
    color: blue;
  }
}
/* equivalent to
   .foo { color: red; }
   .parent .foo { color: blue; }
 */
```
if .parent have three child selectors ".foo",".foo2",".foo3",I must write "@nest .parent &"  in every child selectors,this is very tedious

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2909 using your GitHub account

Received on Thursday, 12 July 2018 08:00:22 UTC