W3C home > Mailing lists > Public > www-style@w3.org > January 2008

Re: [CSS21] Question about width calculation for replaced elements with intrinsic percentage width

From: fantasai <fantasai.lists@inkedblade.net>
Date: Sun, 27 Jan 2008 17:56:39 -0800
Message-ID: <479D3657.7000106@inkedblade.net>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: www-style Mailing List <www-style@w3.org>

Boris Zbarsky wrote:
> 
> fantasai wrote:
>> You wouldn't happen to have a testcase handy?
> 
> https://bugzilla.mozilla.org/attachment.cgi?id=299401 (an attachment on 
> https://bugzilla.mozilla.org/show_bug.cgi?id=414112).
>
> I should note that it would be great, from my point of view, if this got 
> resolved in time for us to ship whatever the final decision is in Gecko 
> 1.9. The code we have currently, implementing what the spec seems to 
> maybe say, is pretty suboptimal.

Ok, so my understanding is that for CSS2.1:10.3.2, we should say that if a
replaced element has intrinsic percentage width and its containing block's
width depends on the replaced element's width/height, then "the resulting
layout is undefined in CSS2.1", as it is for specified percentage widths
in the same situation.

For 10.6.2 we change nothing, except move the paragraph beginning "Percentage"
up to become the second paragraph to clarify its interaction with the other
rules in that section.

   http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height

Correct?

~fantasai
Received on Monday, 28 January 2008 01:56:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:00 GMT