I still stand by my comments, but this was the best I could come up with. Once again, not
is is not not wrong right. You try to figure that one out.
So:
html, body {
background: blue;
}
@media all -webkit-device-pixel-ratio {
body {
background: black;
color: red;
font: bold 28px monospace;
}
}
@media not -webkit-device-pixel-ratio {
body {
background: lime;
}
}
http://jsfiddle.net/userdude/pyvYA/4/
EDIT
This has also been suggested as working:
@media screen and (-webkit-min-device-pixel-ratio:0) {}
The really fancy thing is that Chrome takes you a not and raises you all. It, of course, sees nothing wrong with matching both, while Firefox dutifully only looks a bit lime.
Good times. You can probably tweak the order and have the all override the not by moving it after; just keep in mind it's inheriting that because, you know, Chrome does what it wants.
Try Modernizr out, with yepnope.js and selectivzr.js. Those are pretty well executed.