Re: [csswg-drafts] [css-nesting] Allow custom property within nested at-rule conditions (#8753)

For `@container`, there's a context to draw from (the container element, which is a single specific element when evaluating a CQ against an element). For `@media` this is still not the case; in `.foo { --x: 100px; @media (min-width: var(--x)) {...}}`, we have no idea what element the `--x` should be drawn from. There can be multiple elements matching `.foo`, and other rules might have higher-specificity properties overriding the `--x` you see there, giving each of them different values for it.

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


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

Received on Tuesday, 25 April 2023 22:58:06 UTC