W3C home > Mailing lists > Public > www-style@w3.org > May 2001

Location of pseudoelements (was: Re: first-word pseudo-element)

From: Jonas Sicking <sicking@bigfoot.com>
Date: Sat, 19 May 2001 13:47:05 +0200
Message-ID: <02c301c0e059$6ef5fd60$d1ee42d5@kermit>
To: <www-style@w3.org>
fantasai wrote:

[snip]

> Bjoern Hoehrmann wrote:
> > What does
> >
> >   elem:not(elem::first-line)::first-line { }
> >
> > select? Do typographic pseudo-classes and -elements apply to concat'ed
> > element content or to the context of the current selection?
>
> I believe you're only allowed to take a psuedo-element of the
> selected element.
>
> http://www.w3.org/TR/css3-selectors/#pseudo-elements

That section says that a pseudo element is only allowed once. This would
allow selectors like this:

div::first-line em { ... }

elem:not{::first-line}

Are they allowed?

/ Jonas Sicking
Received on Saturday, 19 May 2001 07:44:25 GMT

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