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

Re: Inline h*ll

From: Matthew Brealey <thelawnet@yahoo.com>
Date: Tue, 11 Jan 2000 07:01:46 -0800 (PST)
Message-ID: <20000111150146.20640.qmail@web905.mail.yahoo.com>
To: www-style <www-style@w3.org>
Cc: (wrong string) åkon" Wium Lie <howcome@opera.com>
--- Håkon Wium Lie <howcome@opera.com> wrote:
> Also sprach Eric A. Meyer:
>  > If anyone can
>  > come up with a screenshot-- faked or otherwise--
> which provides a reference
>  > rendering for the test page, then let's see it.
> 
>
http://www.opera.com/people/howcome/2000/inline-hades/


Impressive.

However...

11. <P style="line-height: 14pt; font-size: 12pt;">11.
This is a paragraph which<BR>contains a <BIG
style="font-size: 300%;">BiG</BIG> element<BR> that
will do weird stuff.</P>

Since the line-height declaration is 14pt, there
should be 14pt between baselines, regardless of the
content.

This one is clearly badly wrong in Opera 4; odd,
considering it gets the much more 'difficult' examples
right, but fails this relatively trivial test.

It seems (I suspect) that the <br> is causing
suppression of the line-height inheritance. I would
imagine if it were removed, Opera 4 would perform
correctly.

13 is wrong for similar reasons.

<P style="line-height: 14pt; font-size: 12pt;"><SPAN
style="border: 1px solid gray">14. This is a paragraph
which<BR>contains a <BIG style="font-size:
300%;">BiG</BIG> element<BR> that will do weird
stuff.</SPAN></P>

14 is also wrong, most blatantly here. There should be
equal amount of space between baselines.

Incidentally, the test would be more efficient if

<P style="line-height: 18px; font-size: 16px;"><SPAN
style="border: 1px solid gray">14. This is a paragraph
which<BR>contains a <BIG style="font-size:
300%;">BiG</BIG> element<BR> that will do weird
stuff.</SPAN></P>

because this would mean that one can say unequivocally
that the borders should have zero vertical separation
(borders go on top of font-size, there is 1px above
and below font-size, which is also the size of the
borders - QED), whereas no such guarantees can be made
when mixing absolute and relative units as at present.

16. See comments above - Opera is wrong again.

Also better is:
<P style="line-height: 24px; font-size: 16px;"><SPAN
style="border: 1px solid gray">16. This is a paragraph
which<BR>contains a <BIG style="font-size:
300%;">BiG</BIG> element<BR> that will do weird
stuff.</SPAN></P>
, which will allow one to say that the borders should
have a 3 pixel separation.
 rather than:
<P style="line-height: 18pt; font-size: 12pt;"><SPAN
style="border: 1px solid gray">16. This is a paragraph
which<BR>contains a <BIG style="font-size:
300%;">BiG</BIG> element<BR> that will do weird
stuff.</SPAN></P>


=====
----------------------------------------------------------
From Matthew Brealey (http://members.tripod.co.uk/lawnet (for law)or http://members.tripod.co.uk/lawnet/WEBFRAME.HTM (for CSS))
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
Received on Tuesday, 11 January 2000 10:01:47 GMT

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