Multiple min-width linked with 'and' on IE10 behaves not in the usual way I think the and operator should do: When window width is say 500px,
@media (min-width: 400px) and (min-width: 600px) { not applying this }
@media (min-width: 600px) and (min-width: 400px) { applything this! }
See jsfiddle
The question is: anyway to make both work on IE10? [edited here] which means 'not applying this' on both, in the way the and operator should behave. Chrome works in the expected way.
Suppose the code is already written as in the second line, everything is tested good except IE because of this issue. How to easily make IE not applying the second line, while not affecting other browsers?
Here is only some background not directly related to the issue: I need clumsy multiple min-width because I use SCSS mixin to make general small, medium and large layouts.
@mixin respond($view) {
if $view == m {
@media (min-width: MMM) and (max-width: LLL) { ... }
}
}
On certain pages the medium layout splits into two layouts, so I need
@include respond(m) {
@media (min-width: M2) { ... }
}
which is compiled into multiple min-width.