I have a HTML like:
I have had this happen to me from time to time. Make sure your tab is not zoomed in (⌘0)
I used this HTML:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Code: NewYork</title>
</head>
<body data-ng-app="us">
<input type="text" />
</body>
</html>
With a simpler media query declaration like this one:
@media (min-width: 1000px) and (max-width: 1200px) {
input {
background-color: green;
}
}
It's working great here: http://jsbin.com/ubehoy/1
Debugging with Firefox Responsive Design View and dragging the resizer, it changes the input background color correctly when the width limits are reached.
Tried with Chrome 26.0.1410.64 m/IE 10 and it's working great too.
@media (min-width: 1000px) and (max-width: 1200px) {
input {
background-color: green;
}
}
This works, but make sure you check the zooming. (I got this answer from the comments, as it seems this is the big catch around here.. I fell for it too)