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

CSS4 Selectors (was Re: Extend use of namespaces)

From: Brad Kemper <brad.kemper@gmail.com>
Date: Tue, 21 Sep 2010 13:33:47 -0700
Message-Id: <C4C59AF4-5278-4E6D-99AF-32FE42777E69@gmail.com>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, Anne van Kesteren <annevk@opera.com>, www-style <www-style@w3.org>
To: Aryeh Gregor <Simetrical+w3c@gmail.com>


On Sep 21, 2010, at 12:16 PM, Aryeh Gregor <Simetrical+w3c@gmail.com> wrote:

>>> textarea, svg html textarea, svg html html textarea { ... }
>>> svg textarea, svg svg textarea, svg svg svg textarea { ... }
>>> 
>>> or something, for practical purposes.  But that's not acceptably
>>> robust for UA stylesheets, I'd think.
>> 
>> It's not acceptable for user sheets either, nor in my opinion for author
>> sheets.
> 
> You're already forced to do stuff like this anyway in some cases.  For
> instance, if you want to alternate between three styles of bullets for
> <ul>,
> 
> ul li { list-style-type: disc }
> ul ul li { list-style-type: square }
> ul ul ul li { list-style-type: circle }
> ul ul ul ul li { list-style-type: disc }
> ul ul ul ul ul li { list-style-type: square }
> ul ul ul ul ul ul li { list-style-type: circle }
> ul ul ul ul ul ul ul li { list-style-type: disc }
> ul ul ul ul ul ul ul ul li { list-style-type: square }
> ul ul ul ul ul ul ul ul ul li { list-style-type: circle }

Maybe we need a 'nth-generation-of-type()' in CSS4 Selectors. 
Received on Tuesday, 21 September 2010 20:34:27 GMT

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