Re: [csswg-drafts] [css-nesting-1] nesting `@scope`, `@layer` and `@media` (#7965)

Yeah, layers won't ever be dependent on selector matching (similar to how they're not dependent on CQ matching!). An @layer rule contributes to the set of layers regardless of any local conditions; only global conditions (like @media or @supports) can affect it.

Nesting @layer would purely be a convenience allowing you to avoid repeating selectors, just like nesting @media.

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


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

Received on Thursday, 27 October 2022 21:59:59 UTC