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

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 UTC