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