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


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

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

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

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