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

Re: [css21] height: [percent]

From: Ignacio Javier <ijavier@efenet.com>
Date: Mon, 6 Mar 2006 11:30:47 +0100
Message-ID: <007601c64109$08ad3d00$2301a8c0@dominio.local>
To: <www-style@w3.org>

> 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 
, "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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:23 UTC