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

I was confused when Lea described @FremyCompany's [proposal](https://github.com/w3c/csswg-drafts/issues/7834#issuecomment-1276360012), but seeing it, it kinda makes sense. Basically you have, potentially, two blocks associated with the selector: a block of declarations and a block of nested rules. That they're siblings isn't entirely unreasonable.

I still think @nest is noisy, and would prefer not having it. You could just drop @nest and have bare braces, though. Nesting is going to be so fundamental to CSS, it really needs to read cleanly.

```
article {
  color: gray;
} {
  h1 {
    color: black;
    font-weight: bold;
  } {
    span { color: pink }
    b { color: orange }
  }

  h2 {
    color: black;
  } {
    span { color: cyan }
    b { color: yellow }
    article & {
      font-size: 110%;
    }
  }
}
```

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


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

Received on Tuesday, 18 October 2022 15:59:06 UTC