- From: Ludger Bünger <ludger.buenger@realobjects.com>
- Date: Wed, 31 Oct 2007 18:30:42 +0100
- To: Bjoern Hoehrmann <derhoermi@gmx.net>
- CC: www-style@w3.org
- Message-ID: <4728BBC2.9030307@realobjects.com>
Bjoern Hoehrmann schrieb:
> * Ludger Bünger wrote:
>   
>> http://www.w3.org/TR/2001/WD-css3-selectors-20010126/#pseudo-elements 
>> states:
>>     
>
> Note that this is an old version, http://www.w3.org/TR/css3-selectors
> has the same text though.
>
>   
>> "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."
>>     
>
> This issue comes up every now and then, this supposedly refers to
>
>   p::before       { ... }
>   p::first-letter { ... }
>
> rather than p::before::first-letter. We should probably revise the
> text to avoid this confusion.
>   
While you and Mr. van Kesteren convinced me last week that only one 
pseudo element is allowed, today I found the following 
inhttp://www.w3.org/TR/css3-content/#nesting, where nested  pseudo 
elements are explicitly mentioned:
[quote]
        4.2.1. Nesting '::before' and '::after' pseudo-elements
The selector '::before::before' represents a pseudo-element contained at 
the start of a pseudo-element contained at the start of an element.
For example, the following rules:
div { content: 'A' }
div::before { content: 'B'; }
div::before::before { content: 'C'; }
[/quote]
Other examples of multiple pseudo element selectors can be found in:
http://www.w3.org/TR/css3-content/#mixing and 
http://www.w3.org/TR/css3-content/#mixing0
So it seems at least the generated content folks felt there is a need 
for multiple pseudo-elements upon one selector...
Best Regards
Ludger Bünger
-- 
Dipl-Inf. Ludger Bünger
Product Development
- - - - - - - - - - - - - - - -
RealObjects GmbH
Altenkesseler Str. 17/B4
66115 Saarbrücken, Germany
Tel +49 (0)681 98579 0
Fax +49 (0)681 98579 29
http://www.realobjects.com
ludger.buenger@realobjects.com
- - - - - - - - - - - - - - - -
Commercial Register: Amtsgericht Saarbrücken, HRB 12016
Managing Directors: Michael Jung, Markus Neurohr
VAT-ID: DE210373115
Received on Wednesday, 31 October 2007 17:30:58 UTC