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

Re: [css3-images] default object size for replaced elements not purely 300x150

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 13 Mar 2012 15:47:56 -0700
Message-ID: <4F5FCE9C.4080701@inkedblade.net>
To: www-style@w3.org
On 03/13/2012 02:04 PM, L. David Baron wrote:
> http://dev.w3.org/csswg/css3-images/#default-object-size says:
>    # replaced elements
>    #   The default object size is a rectangle 300px wide and 150px
>    #   tall. [CSS21]
>
> This is an incorrect statement of CSS 2.1's rules, and this should
> instead reflect what CSS 2.1 actually says.
>
> http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width says:
>    # Otherwise, if 'width' has a computed value of 'auto', but none
>    # of the conditions above are met, then the used value of 'width'
>    # becomes 300px. If 300px is too wide to fit the device, UAs
>    # should use the width of the largest rectangle that has a 2:1
>    # ratio and fits the device instead.
>
> http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height says:
>    # Otherwise, if 'height' has a computed value of 'auto', but none
>    # of the conditions above are met, then the used value of 'height'
>    # must be set to the height of the largest rectangle that has a
>    # 2:1 ratio, has a height not greater than 150px, and has a width
>    # not greater than the device width.
>
> This implies that instead, the default object size is the largest
> rectangle that has a 2:1 width:height ratio, is no larger than 300px
> width and 150px height, and has a width that fits in the device.

Fixed. Thanks for the wording!
   http://dev.w3.org/csswg/css3-images/#default-object-size

I also marked the list informative, since the normative definition is
given in the referenced specifications.

~fantasai
Received on Tuesday, 13 March 2012 22:48:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:51 GMT