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

:first-letter and :first-line oversight

From: Matthew Brealey <thelawnet@yahoo.com>
Date: Mon, 7 Feb 2000 01:10:00 -0800 (PST)
Message-ID: <20000207091000.3891.qmail@web901.mail.yahoo.com>
To: www-style <www-style@w3.org>
There appears to have been an oversight regarding :first-letter and

When the :first-letter and :first-line pseudo-elements are combined with
:before and :after, they apply to the first letter or line of the element
including the inserted text.
P.special:before {content: "Special! "}
P.special:first-letter {color: #ffd800}
This will render the "S" of "Special!" in gold.

This means that LI:first-letter affects the marker rather than the
content, which is clearly absurd. I think this statement should only apply
to :before and :after when display: inline.

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 Monday, 7 February 2000 04:10:01 GMT

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