Re: [css21] height: [percent]

----- Original Message ----- 
From: "Boris Zbarsky" <bzbarsky@mit.edu>
|
| 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
|

Thanks, Boris,

I knew you will say that :)

The problem is that if I will add something like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" 
"http://www.w3.org/TR/REC-html40/strict.dtd">

then all popular UAs shows document above differently.

Without doctype declaration they are at least united in how to render this.
Which makes doctype useless in some cases, IMO.

But this is out of scope of course. It is enough if Mozilla will support this 
strictly.

Andrew Fedoniouk.
http://terrainformatica.com

Received on Friday, 3 March 2006 18:44:55 UTC