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: Tue, 11 May 2010 17:49:31 +0000
To: Brad Kemper <brad.kemper@gmail.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <FA122FEC823D524CB516E4E0374D9DCF014F99F2@TK5EX14MBXC136.redmond.corp.microsoft.com>
For the sample below, here’s what I’m seeing:

-          Firefox: no image.

-          Opera: 6 images, some partial.

-          Safari: 1 partial image.

-          IE8: no support for background-size; 4 partial images.

        background: url(http://www.microsoft.com/favicon.ico) 5px 5px;
        background-size: 0px 20px;
        -moz-background-size: 0px 20px;
        -o-background-size: 0px 20px;
        -webkit-background-size: 0px 20px;

For values below 0.00833333331px, Firefox continues to show no image.  For values above that, the image starts appearing.
More fun with near-zero values in the land of interoperable browsing challenges.

Thanks for the clarification,

From: Brad Kemper [mailto:brad.kemper@gmail.com]
Sent: Tuesday, May 11, 2010 10:37 AM
To: Brian Manthos
Cc: www-style@w3.org
Subject: Re: [css3-background] background-size and zero length

I've never been too thrilled with the wording of that sentence, but I read it as:

x = width of image after step one;
if (x != 0) {
            round to integer greater than zero;

Since there was no "else" clause, I took it to mean that no rounding should take place otherwise. That is also what seems most sensible (to me).

I'm curious about what the 3 renderings are, but too pressed for time to try to check it out myself right now.

Received on Tuesday, 11 May 2010 17:50:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:46 UTC