Le 16 juil. 2012 à 10:18, Micky Hulse a écrit : > ... is it just me, or does "only screen" feel like overkill?
It might be, but then, maybe not. What if you don't want your media query to affect media="print" ? (quality printing from a web browser is still an exercise in craziness…) But you're right, the 'only screen' or 'screen' part is optional. > > Why not just: > > @media > only screen and (-webkit-min-device-pixel-ratio: 1.5) > and (-o-min-device-pixel-ratio: 3/2) > and (min--moz-device-pixel-ratio: 1.5) > and (min-device-pixel-ratio: 1.5) { … } That would never work, unless the targeted user agent understands _all_ vendor prefixes. The 'and' operator means that both, or all, conditions must be true. You could write: @media (-webkit-min-device-pixel-ratio:2), (-o-min-device-pixel-ratio:2), (min--moz-device-pixel-ratio:2) { /* stuff */ } Philippe -- Philippe Wittenbergh http://l-c-n.com/ ______________________________________________________________________ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/