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

On Sat, 19 May 2001, Jonas Sicking wrote:
>
> fantasai wrote:
>
> [snip]
>
> > Bjoern Hoehrmann wrote:
> > > What does
> > >
> > >   elem:not(elem::first-line)::first-line { }
> > >
> > > select?

It's illegal. :not() is only allowed to take one simple selector, and
never pseudo-elements.


> div::first-line em { ... }
> elem:not{::first-line}
>
> Are they allowed?

Nope, because pseudo-elements (since CSS1) are only allowed at the end of
the selector chain.

-- 
Ian Hickson                                            )\     _. - ._.)   fL
Invited Expert, CSS Working Group                     /. `- '  (  `--'
The views expressed in this message are strictly      `- , ) -  > ) \
personal and not those of Netscape or Mozilla. ________ (.' \) (.' -' ______

Received on Saturday, 19 May 2001 08:14:19 UTC