Proposal: CSS3 or CSS4? Grouping of selectors

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 UTC