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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -