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

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 UTC