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
@media all and (min-width:20px) and (min-width:10px) {
body {
color:#f00;
}
}
@media all and (min-width:10px) and (min-width:20px) {
body {
background:#008000;
}
}
Expected CSS:
@media all and (min-width:10px) {
@medianot all and (min-width:20px) {
body {
background:#f00;
}
}
}
@media all and (min-width:10px) {
@medianot screen and (min-width:20px) {
body {
background:#008000;
}
}
}
The text was updated successfully, but these errors were encountered:
kugland
changed the title
Incorrect handling of @media not
Incorrect handling of @media notJun 9, 2021
kugland
changed the title
Incorrect handling of @media not
Incorrect handling of negated media queries (@media not ...)
Jun 9, 2021
No css is emitted at all here. Note that the correct css is emitted if you change the query from not all to not screen so I feel like there is a hint there.
Let me know if you feel it's unrelated enough for me to open a new ticket and I will.
Stylus v0.54.8 handles negated media queries (
@media not ...
) incorrectly.Code:
Transpiled CSS:
Expected CSS:
The text was updated successfully, but these errors were encountered: