Re: [css3-mediaqueries] (min-resolution: 0dpi) is false in several browsers.

On Sun, Oct 21, 2012 at 8:22 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 10/21/12 7:32 AM, Simon Sapin wrote:
>> Apparently Firefox, Opera, and IE10 all agree that the media query
>> (min-resolution: 0dpi) is false, but (min-resolution: 0.1dpi) is true:
>
> http://dev.w3.org/csswg/css3-mediaqueries/#values says:
>
>   The <resolution> value is a positive <number> immediately followed
>   by a unit identifier (‘dpi’ or ‘dpcm’).
>
> So "0dpi" is not a valid value for <resolution>.

That sounds silly.  No other dimension has an intrinsic "non-zero"
requirement, and there's no reason for <resolution> in particular to
be different.

I highly suspect the text you quoted is just a result of the original
author being sloppy with the difference between "positive" and
"non-negative".

~TJ

Received on Sunday, 21 October 2012 19:01:14 UTC