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

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 11 May 2010 13:54:39 -0400
Message-ID: <4BE999DF.2070609@mit.edu>
To: Brian Manthos <brianman@microsoft.com>
CC: "www-style@w3.org" <www-style@w3.org>
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.

> More fun with near-zero values in the land of interoperable browsing
> challenges.

It's a general problem.  You have similar issues with large values.  At 
some point, either the browser is using an infinite-precision arithmetic 
package for layout (unlikely given the performance impact) or you get 
arbitrary limitations on your values.

-Boris
Received on Tuesday, 11 May 2010 18:00:34 GMT

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