Re: :first-line errors

--- Bert Bos <Bert.Bos@sophia.inria.fr> wrote:
> > This is a grave error. Vertical-align can have no effect since
> :first-line
> > selects a line box, and line boxes are stacked without separation.
> 
> No, it doesn't select the line box (nothing in CSS ever selects the
> line box, I believe), it selects the text in that line box.
How so?

<P>
<:first-line style="vertical-align: super">
<SPAN>
Some text in the first line.
</SPAN>
</:first-line>

Now if that is supposed to superscript the SPAN, then it is necessary to
imply some kind of inheritance of non-inheritable properties, and I know
*that* isn't in the spec.

Similarly:

<P>
<:first-line style="background: red">
<img>Some text in the first line.
</:first-line>
Now if the image is taller than the font-size, then we are going to have
one hell of an ugly first line (assuming the background selects the text)

In addition, the clear property (which works after a fashion (although it
seems rather pointless - why not clear the containing block?) if the line
box is selected) is made meaningless by selecting inline text - inline
elements can't be cleared.

I think the selection of line box is the more satisfactory approach as it
makes more attractive background effects and doesn't require any
suspension of he normal rules of CSS.

=====
----------------------------------------------------------
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 Thursday, 3 February 2000 13:57:46 UTC