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

Re: [css2.1] :first-line behvior

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 19 Mar 2008 13:40:57 -0700
Message-ID: <47E17A59.9050206@inkedblade.net>
To: Bruce Lawson <bruce@brucelawson.co.uk>
CC: www-style@w3.org

Bruce Lawson wrote:
> 
> At 19:16 19/03/2008, David Hyatt wrote:
>> http://www.w3.org/TR/CSS21/selector.html#pseudo-elements
>>
>> "Pseudo-classes are allowed anywhere in selectors while pseudo- 
>> elements may only be appended after the last simple selector of the
>> selector."
> 
> I've seen this before, and often wondered: why?

<p>This is a one-sentence <em>paragraph that
has two lines</em> of text.</p>

p::first-line em { display: block; }

is one reason I can think of.

~fantasai
Received on Wednesday, 19 March 2008 20:41:32 GMT

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