Re: [csswg-drafts] [css-conditional] [css-contain] Fleshing out @container queries with single-axis containment (#5796)

@MajPay That wouldn't work in practice. A `var()` only has a value through the cascade. At the level of `@container`, it has no value, because `--container-medium` is only a value within `:root` within your stylesheet. So your usage is more like Less / Sass's uses of variables within a stylesheet, which CSS doesn't yet support (but hopefully will someday with being able to set global env vars).

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


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

Received on Wednesday, 16 June 2021 16:37:15 UTC