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

Le 21/10/2012 17:22, Boris Zbarsky a écrit :
> 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>.

Ok, so (min-resolution: 0dpi) is not false, it’s invalid (which 
evaluates as false.) That explains it. Thanks Boris.

(It there a convention in English or in specs that "positive" means 
"strictly positive" rather than "positive or zero"?)

-- 
Simon Sapin

Received on Sunday, 21 October 2012 15:32:55 UTC