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

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

From: David Hyatt <hyatt@apple.com>
Date: Wed, 19 Mar 2008 14:16:04 -0500
To: Ambrose Li <ambrose.li@gmail.com>
Cc: Sergey Malkin <sergeym@windows.microsoft.com>, www-style@w3.org
Message-id: <67BBB1B9-D1F9-4D3C-9C7B-62FC305360DF@apple.com>

See section 5.10, paragraph 4:

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."

dave

On Mar 19, 2008, at 2:09 PM, David Hyatt wrote:

>
> Nothing is allowed to the right of a pseudo-element in CSS2.1  
> selectors.
>
> dave
> (hyatt@apple.com)
>
> On Mar 19, 2008, at 2:06 PM, Ambrose Li wrote:
>
>>
>> On 19/03/2008, Sergey Malkin <sergeym@windows.microsoft.com> wrote:
>>>
>>> Several people already pointed out to me, that "div:first-line  
>>> span" is not valid for CSS and should be ignored. So behavior I  
>>> expect is incorrect, but behavior of Opera and Safari still seems  
>>> wrong.
>>
>> I don't understand why div:first-line span would be invalid in any
>> way; it looks very much valid to me. Could you summarize the reasons
>> for the benefit of other people? Thanks
>>
>> -- 
>> cheers,
>> -ambrose
>>
>> Yahoo and Gmail must die. Yes, I use them, but they still must die.
>> PS: Don't trust everything you read in Wikipedia. (Very Important)
>>
>
>
Received on Wednesday, 19 March 2008 19:16:43 GMT

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