W3C home > Mailing lists > Public > www-style@w3.org > October 2012

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

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Sun, 21 Oct 2012 17:32:14 +0200
Message-ID: <5084157E.1000309@kozea.fr>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: www-style@w3.org
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:01 GMT