Re: Inline h*ll

--- 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 UTC