W3C home > Mailing lists > Public > www-style@w3.org > August 2011

Re: [css3-background] 'background-size: auto auto' and images with intrinsic size in one dimension

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 08 Aug 2011 14:02:44 -0400
Message-ID: <4E4024C4.9060009@mit.edu>
To: www-style@w3.org
On 8/8/11 1:53 PM, Brian Manthos wrote:
> http://www.w3.org/TR/SVG/struct.html#SVGElementWidthAttribute
> # height = "<length>"
> # If the attribute is not specified, the effect is as if a value of '100%' were specified.

Yes, but there are no intrinsic percentage sizes, and there is no way to 
take a ratio of 100% and 100px.

> And thus the image size is mapped to {100px,<height-of-the-background-positioning-area>} well-before background-size gets evaluated.

That's not how it works, unfortunately.

Note that there have been spec changes in this area, so loose 
recollections may be of what specs _used_ to say.

Received on Monday, 8 August 2011 18:03:34 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:48 UTC