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

That is correct. And yes, today `--button:focus {...}` will parse as a rule at the top level, but we ended up having to disallow it in nested context and there's not much reason to allow it at top-level either; better to have a consistent rule ("spell it `:is(--foo)`") for a rare case (/non-existent, since no valid HTML element can be named starting with a `--`) rather than split it into *two* different cases.

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


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

Received on Monday, 18 September 2023 03:07:59 UTC