Re: [csswg-drafts] Allow comment indicators (`/*` and `*/`) to be nested. (#10768)

I can't really see what is happening in the screen capture.

But it seems that you are trying to use it comment out arbitrary, non-CSS things.
Likely there are other characters in there that are interpreted as either more blocks or an unexpected early close of the `@--comment {}` block.

Something like this:

```css
@--comment {
  [ /* open ended, unbalanced bracket */
}

* {
  background-color: pink;
}
```

Or this:

```css
@--comment {
  } /* unexpected early close */
}

* {
  background-color: pink;
}
```

----

Keep in mind that you were asking about nesting comments specifically.

If you use regular CSS comments first and something like `@--comment {}` for further levels then everything will work.

`@--comment {}` isn't a real comment. Everything inside it is tokenized and parsed as CSS.
It is only assured to be ignored, as any other comment would also be ignored.

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


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

Received on Saturday, 24 August 2024 06:34:13 UTC