You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dynamic values (e.g. props) in CSS media queries currently do not result in correct CSS output. This is due to the use of CSS variables, which are not supported within media queries.
If standardised, env() would address the problem of var() not working in media queries. We could potentially switch from var() to env() in the future depending on how the latter gets standardised. See here: https://stackoverflow.com/a/47212942
The text was updated successfully, but these errors were encountered:
Describe the bug
Dynamic values (e.g. props) in CSS media queries currently do not result in correct CSS output. This is due to the use of CSS variables, which are not supported within media queries.
To Reproduce
Expected behavior
CSS variables are not currently supported in media queries, so the output CSS should look something like this:
Actual behaviour
This CSS is generated:
No error is generated, but the browser will never apply
width: 80vw
to the element.Additional context
env()
would address the problem ofvar()
not working in media queries. We could potentially switch fromvar()
toenv()
in the future depending on how the latter gets standardised. See here: https://stackoverflow.com/a/47212942The text was updated successfully, but these errors were encountered: