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

Re: :first-line errors

From: Matthew Brealey <thelawnet@yahoo.com>
Date: Thu, 3 Feb 2000 10:21:07 -0800 (PST)
Message-ID: <20000203182107.2032.qmail@web906.mail.yahoo.com>
To: www-style <www-style@w3.org>
--- 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?

<:first-line style="vertical-align: super">
Some text in the 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.


<:first-line style="background: red">
<img>Some text in the 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.
Received on Thursday, 3 February 2000 13:57:46 GMT

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