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

Pseudo-element ambiguities

From: Matthew Brealey <webmaster@richinstyle.com>
Date: Thu, 16 Mar 2000 15:14:30 -0800
Message-ID: <38D16AD6.5362@richinstyle.com>
To: www-style@w3.org
<q cite="http://www.w3.org/TR/REC-CSS2/selector.html#first-line-pseudo">
The :first-line pseudo-element applies special styles to the first
formatted line of a paragraph. 

What does this mean? Does it mean that it spans the content of the line
box? If so, then in <p><span style="float: left; width: 1em">T</span>he
float, 'T' isn't matched by :first-line (see Bugzilla bug 13610, which
might not be valid as a result), since 'T' is simply aligned with the
line box, but does not form part of it.

If it matches something more than the content of the line box, it seems
that it should match '1' in:

1   This is a list item. 

, but that doesn't seem right either.

Some clarification of what is matched would be useful.

Please visit http://www.richinstyle.com
Featuring:  CSS bug guides (more than 1000 CSS bugs) CSS Masterclass
HTML 4 guide    CSS 1 guide    CSS 2 guide   Web-safe colorizer 
CSS bug table     More than 300 CSS test pages
Received on Thursday, 16 March 2000 10:11:24 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:53 UTC