Re: [csswg-drafts] Defining `@custom-media` inside conditional at-rules (#12536)

I think that'd be rather unfortunate. Having a "base" stylesheet you import with the design system's tokens and breakpoints seems like a fairly common thing to want.

FWIW, I think something like what I suggested above (apply the last defined version that we've found by the time we get there) also solves the circularities while allowing for more common use cases, and that would also work for `@mixin` and co.

In general I think "invalid if not defined by the time you try to evaluate it in source order" is fairly reasonable for these kinda-parser-level things... (And yeah, I'm aware these are not quite parser level, but there's a clear distinction between these and things that are more tightly integrated into the cascade to me and implementation-wise)

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


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

Received on Wednesday, 30 July 2025 01:20:37 UTC