W3C home > Mailing lists > Public > www-style@w3.org > July 2006

Proposal: CSS3 or CSS4? Grouping of selectors

From: Jo-W <jowie.1337@gmail.com>
Date: Tue, 11 Jul 2006 10:57:07 +0200
Message-ID: <ada3dbf70607110157l54d20523m36b4163ebb7a8a4a@mail.gmail.com>
To: www-style@w3.org

Hello,

I propose extending the grouping of selectors by allowing to group
comma separated lists.


For example:

  .mystyle (div,ul,li) {
    background: red;
  }

would be the equivalent of:

  .mystyle div,
  .mystyle ul,
  .mystyle li
  {
    background:red;
  }

or an even more advanced example:

  div#example ((div,ul).mystyle (div, ul, li), span)  {
    background: red;
  }

which is very complex and will be rarely used but shows the power of
this proposed addition.

I am proposing this because I have a complex CSS script which has
block that could be cut down from 9 lines to 1 line (excluding
properties).


Yours sincerely,
Joris v/d Wel
Received on Tuesday, 11 July 2006 16:29:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:46 GMT