W3C home > Mailing lists > Public > www-style@w3.org > January 2002

Re: Proposal for new `any of these elements' selector type

From: fantasai <fantasai@escape.com>
Date: Wed, 02 Jan 2002 15:57:35 -0500
Message-ID: <3C33743F.55980B4F@escape.com>
To: Matthew Thomas <mpt@mailandnews.com>, www-style@w3.org
Matthew Thomas wrote:
> The cause of the problem is that instead of just selecting on UL, we're
> selecting on UL or OL or DIR or MENU. And while CSS allows selecting on
> one element (NameOfElementHere) or all elements (*), it does not allow
> selecting on a particular subset of elements.
> So, I thought, why not introduce `any of these elements' syntax into
> CSS? Then all the above html.css code could be replaced with only three lines:
> |
> |                                   ul {list-style-type: disc;}
> |                  (ul,ol,menu,dir) ul {list-style-type: circle;}
> | (ul,ol,menu,dir) (ul,ol,menu,dir) ul {list-style-type: square;}
> Discuss amongst yourselves. :-)

This can be done with the :matches() proposal - 

                                                  ul {list-style-type: disc;}
                         :matches(ul,ol,menu,dir) ul {list-style-type: circle;}
:matches(ul,ol,menu,dir) :matches(ul,ol,menu,dir) ul {list-style-type: square;}
Received on Wednesday, 2 January 2002 15:54:43 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:00 UTC