Re: Enhancing grouping of selectors

----- Original Message -----
> On 2010-09-18 12:23 PM, Paul Duffin wrote:
> > "The negation pseudo-class, :not(X), is a functional notation taking
> > a simple selector (excluding the negation pseudo-class itself) as an
> > argument. It represents an element that is not represented by its
> > argument."
> >
> > Does "simple selector" in this case use the CSS 3 definition (which
> > it should given it is in the CSS 3 specification), or does it
> > mistakenly use the CSS 2.1 definition, which would allow things like
> > :not(a.special) but not :not(li> a).
> 
> Given that the text you quoted [1] links to the CSS3 Selectors
> definition for the term "simple selector" [2], I think it's pretty
> obvious that the CSS3 Selectors definition is in use.
> 
> Do you have a reason for believing otherwise? I don't see how the
> definition could be made more obvious short of copying it verbatim to
> the cited location.
> 
> [1] <http://dev.w3.org/csswg/selectors3/#negation>
> [2] <http://dev.w3.org/csswg/selectors3/#simple-selectors-dfn>

It just seems very restrictive and I was wondering why that was the case. If you following the email trail it came to light in a discussion about :any(), or rather the :-moz-any() described here [1] which I know is not a standard but is a similar 'logical' pseudo class. The two are inconsistent and I just wanted to understand why that might be.

[1] http://dbaron.org/log/20100424-any

Received on Sunday, 19 September 2010 06:34:38 UTC