Re: [csswg-drafts] [css-nesting-1] Relaxed nesting and var() (#9317)

Am I understanding correctly that

```css
div {
  button:focus {
    color: var(--x);
  }
}
```

would be parsed as a rule but

```css
div {
  --button:focus {
    color: var(--x);
  }
}
```

would be parsed as a declaration?

That second one is parseable as a rule outside of nesting today. Maybe not a problem if element names can't start with `--`. Looks like [custom selectors](https://drafts.csswg.org/css-extensions/#custom-selectors) also require a leading `:`.

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


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

Received on Sunday, 17 September 2023 18:43:25 UTC