html - Strange Media Queries behaviour in Firefox -
something strange happens when use media queries in firefox.
<div style="width:100px;height:100px;" class="test"></div> @media (min-width: 701px) { div.test { background-color: yellow; } } @media (max-width: 700px) { div.test { background-color: blue; } }
what expecting happen here test-div have blue background when window <= 700px, , test div become yellow when window >= 701px.
here's jsfiddle: https://jsfiddle.net/wmtanujf/embedded/result/
if open fullscreen (in firefox, latest version) , use ctrl+shift+m, can set window size example: 702 x 300, , notice doesn't set background. why happen?
i think have problem version of firefox. have update firefox version latest update
Comments
Post a Comment