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

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 UTC