W3C home > Mailing lists > Public > www-style@w3.org > October 2007

CSS3-selectors: Pseudo Elements only once or multiple times per selector?

From: Ludger BŁnger <ludger.buenger@realobjects.com>
Date: Mon, 22 Oct 2007 15:55:46 +0200
Message-ID: <471CABE2.6090604@realobjects.com>
To: www-style@w3.org


"Pseudo-elements may only appear once in the sequence of simple 
selectors that represents the subjects of the selector."

Does this mean, pseudo-elements may appear only once per selector and it 
is not possible to combine pseudo-elements, right?

This seems to be the case because the grammar in 
allows only one pseudo element per selector:

  /* there is at least one sequence of simple selectors in a */
  /* selector and the pseudo-elements occur only in the last */
  /* sequence ; only pseudo-element may occur */
  : [ simple_selector_sequence combinator ]* 
       simple_selector_sequence [ pseudo_element ]?

The reason I ask is because 
http://www.w3.org/TR/2001/WD-css3-selectors-20010126/#gen-content then 
contradicts to the above said:

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

Where is the mistake?

Best regards,

Ludger BŁnger
Received on Monday, 22 October 2007 13:55:59 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:31 UTC