Re: [csswg-drafts] [css-nesting-1] Syntax Invites Errors (#7834)

> Non-nested nesting means we can't nest two levels deep in an unambiguous way.

@tabatkins Why? It seems to me that

```css
article {
  color: gray;
  @nest;
  h1 {
    color: black;
    font-weight: bold;
    @nest;
    span { color: pink }
    b { color: orange }
  }
  h2 {
    color: black;
    @nest;
    span { color: cyan }
    b { color: yellow }
  }
}
```
could be
```css
article {
  color: gray;
}
@nest {
  h1 { color: black; font-weight: bold; }
  @nest {
    span { color: pink }
    b { color: orange }
  }
  h2 { color: black; }
  @nest {
    span { color: cyan }
    b { color: yellow }
  }
}
```

It would be somehow like [`@else`](https://drafts.csswg.org/css-conditional-5/#else-rule) I guess: linked to the previous rule. But would only be valid immediately after a style rule.

> I'm not sure I understand: statement one suggests the desire to nest two levels deep, but statement two say no extra levels of nesting...

@Myndex I think statement 2 refers to indentation levels

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7834#issuecomment-1277440428 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 13 October 2022 11:11:51 UTC