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

Re: About CSS3 selectors

From: Ivan Enderlin @ Hoa <@>
Date: Thu, 27 May 2010 19:26:09 +0200
Message-ID: <4BFEAB31.6010909@hoa-project.net>
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
CC: www-style@w3.org
Le 27/05/10 17:48, Daniel Glazman a écrit :
> Le 27/05/10 17:32, Øyvind Stenhaug a écrit :
>
>>> Seems like a bug. :any() would require a comma-separated list of stuff
>>> in here (and the "stuff" wouldn't be "expression" either; it would be
>>> a "simple_selector_sequence" or so).
>>
>> But that's not part of Selectors level 3. The core syntax
>> (http://www.w3.org/TR/CSS21/syndata.html#syntax) seems generic enough.
>
> It's because before :any(), we just had never a use case for this.
> It's too late for CSS 3 Selectors but that's something we should discuss
> for next iteration.
:any() is an experimental pseudo-class, but we have the same problem 
with some vendors pseudo-element, like ::-moz-tree-row for example. You 
could write:

    ::-moz-tree-row(readonly, unread)

Here, we see the need of many expressions.

But of course, expressions are selectors with the pseudo-class :any(). 
But :any() can be see as a macro and not a CSS function… It's another 
fact :-).

By the way. Is a new CSS selector specification on the way?

Best regards.

-- 
Ivan Enderlin
Developer of Hoa Framework
http://hoa-project.net/
Received on Thursday, 27 May 2010 17:26:37 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:27 GMT