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

> Just to be clear, this is not intended to be in the current spec, right?

My understanding is that it is, it's quite useful for things like:

```html
<a style="color: blue; &:hover { color: red }">…</a>
```

> > What would be the specificity of such a rule anyway?
> 
> Even worse, what happens if you write `<div style="@nest :is(&, .foo) { color: red; }">`, would that affect an external element with class foo? This should be disallowed.

These are issues to be filed and resolved separately 😊

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


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

Received on Wednesday, 19 October 2022 16:17:46 UTC