W3C home > Mailing lists > Public > www-style@w3.org > May 2010

RE: [css3-background] background-size and zero length

From: Brian Manthos <brianman@microsoft.com>
Date: Wed, 12 May 2010 08:20:13 +0000
To: Brad Kemper <brad.kemper@gmail.com>, Boris Zbarsky <bzbarsky@MIT.EDU>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <FA122FEC823D524CB516E4E0374D9DCF014FA994@TK5EX14MBXC136.redmond.corp.microsoft.com>
>> On 5/11/10 1:49 PM, Brian Manthos wrote:
>>> For values below 0.00833333331px, Firefox continues to show no image.
>> 
>> Right.  Lengths in Gecko are stored as integers in units that are 1/60 of a CSS px.
>> The number above is about 1/120.  So things smaller than that would would round to 0.
> Why don't things less than half a device pixel round to zero (at least for used value)?
> That is what I would expect (unless you were going to simulate a 60th of a pixel by
> averaging the colors of the subpixels, the way anti-aliasing or image size interpolation
> does). I assume you have a perfectly logical reason, but I cannot guess what it is.

Half a device pixel before or after zooming?

How should it behave when printed to a 1200dpi device?  Should lines "appear" that don't appear in the on-screen/monitor rendering?

-Brian
Received on Wednesday, 12 May 2010 08:20:57 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:27 GMT