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

Re:[css3-background] 'auto' value for background-size

From: Joe Thomas <joethomas@motorola.com>
Date: Tue, 26 Jun 2012 18:44:35 +0000
Message-ID: <CAETFwdBZSiH+=uW8iN116_WU4sAyjPqJMRQ8y6fFP-wUa5k+Nw@mail.gmail.com>
To: www-style@w3.org
Subject line modified.

Regards
Joe

On Tue, Jun 26, 2012 at 11:40 AM, Joe Thomas <joethomas@motorola.com> wrote:

> Hi,
>
> I would like to get a clarification on having "auto" value for one
> dimension in background-size property.
>
> As per the specification
> http://www.w3.org/TR/css3-background/#background-size, an ‘auto’ value
> for one dimension is resolved by using the image's intrinsic ratio and the
> size of the other dimension, or failing that, using the image's intrinsic
> size, or failing that, treating it as 100%.
>
> Assume that  background-size is specified as "auto 8px" and the
> background-image used is of intrinsic size (2,32). Assume that the UA takes
> 'integer' for width, then the width of the background image using
> intrinsic-ratio computes to 0 {(2/32) * 8 = 0.5, which is rounded to 0 as
> UA takes only integer for width}
>
> Does computing the width to 0 using intrinsic ratio can be considered as a
> failure? What are the various types of failures that can happen while
> resolving the dimension using intrinsic ratio?
>
> Thanks,
> Joe Thomas
> Motorola Mobility Inc
>
>
Received on Monday, 2 July 2012 11:37:26 GMT

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