[csswg-drafts] [css-selectors] Nesting

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

== [css-selectors] Nesting ==
In a current (work in progress) project

https://tobireif.com/demos/grid/

I have to write ".layout1" many times:
```
.layout1 .page {
  grid-template-rows: repeat(3, auto) 1fr;
  grid-template-columns: 1.14fr 1fr;
}
.layout1 .page .heading {
  grid-row: 2;
  grid-column: 1;
}
/* many more times */
```
Having something like Sass's Nesting

https://sass-lang.com/guide#topic-3

would allow me to write the string ".layout1" only once (ditto for the string ".layout2" and ".layout3").



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

Received on Monday, 19 March 2018 21:47:25 UTC