Re: [csswg-drafts] [css-variables] User Agent properties and variables

@tabatkins’ [new draft specification](https://drafts.csswg.org/css-env-1/) mentions:

> Because environment variables don’t depend on the value of anything drawn from a particular element, they can be used in places where there is no obvious element to draw from, such as in `@media` rules, where the `var()` function would not be valid.

It is good that this is still being included, because there appears to be at least some community demand for this use case, as evidenced by this [Stack Overflow question: “CSS native variables not working in media queries”](https://stackoverflow.com/questions/40722882/css-native-variables-not-working-in-media-queries/47212942#47212942), which also has two duplicates. I myself would find them quite useful as an author.

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

Received on Saturday, 28 April 2018 02:16:48 UTC