Re: [css21] height: [percent]

>
> Andrew Fedoniouk wrote:
>> Consider following html:
>>
>> <html><body>
>> <p><img style="height:50%;"src="..." /></p>
>> </body></html>
>>
>> I didn't find any UA which follows rule [1]:
>
> That's because you're testing quirks mode.  Please add a doctype to your 
> HTML and don't bother testing spec compliance in modes where it's 
> specifically violated.
>
> For what it's worth, for Gecko this specific quirk is explicitly listed in 
> http://developer.mozilla.org/docs/Mozilla_Quirks_Mode_Behavior
>
> -Boris

Then percentages are never considered, neither in the spec or in "quirks 
modes"
, "in a later else", as percentage of intrinsic dimensions?

Are we going to:

If 'height' has a computed value of 'auto' and 'width' also has a computed 
value of 'auto', the element's intrinsic height is the used value of 
'height', it has one.

....or to:
Percentage intrinsic heights are evaluated with respect to the containing 
block's height, if that height is specified explicitly, or if the replaced 
element is absolutely positioned. If neither of these conditions is met, 
then percentage values on such replaced elements can't be resolved and such 
elements are assumed to have no intrinsic height.

Received on Monday, 6 March 2006 10:33:31 UTC