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

Re: [CSS21] Issue 283 - undefining size of replaced elements with intrinsic ratio only

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 22 Mar 2011 19:57:09 -0400
Message-ID: <4D893755.2040806@mit.edu>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
On 3/22/11 7:13 PM, Tab Atkins Jr. wrote:
>> In 10.6.2
>>   # Otherwise, if 'height' has a computed value of 'auto', and the element
>> has
>>   # an intrinsic ratio then the used value of 'height' is: (used width) /
>> (intrinsic ratio)
>> Replace "is: (used width) / (intrinsic ratio)" with
>>   | is undefined. However it is suggested that it be calculated from the used
>>   | width and intrinsic ratio so that the aspect ratio is preserved.
> No browser uses the aspect ratio of the contents to calculate the size
> of the replaced element.  I don't think we should spec this.

Uh... last I checked, every single UA does this.  If I take a 100px by 
100px image and I style it with "width: 200px" then it'll get rendered 
at 200px by 200px.

Received on Tuesday, 22 March 2011 23:57:43 UTC

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