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

Class Selectors Extension Proposals

From: Alberto Pacheco <apacheco@platon.itchihuahua.edu.mx>
Date: Mon, 13 May 2002 21:10:08 -0400 (EDT)
Message-ID: <000d01c1fadb$68000c60$9e01060a@itchihuahua.edu.mx>
To: <www-style@w3.org>
Does CSS support the following class descriptors functionality?

1) Adding classes
    Let be
        .a { p1; }
        .b { p2; }
    How do I get ".c {.a + .b}"  or "<span class=a+b>"
    Where class c combines a & b classes properties, ie equivalent to ".c { p1; p2; }"

2) Parametrized classes
    How do I get something like:
        .c(X,Y) { width:X; color:Y; }
    To be refered in HTML later as:
        <span class="c(50%,red)">
    Where class c becomes equivalent to ".c { width:50%; color:red;)"

I know it sounds crazy.. but It will help me a lot for my current project to know if there any CSS current support or plan to extend its functionality for something like this

And in case there is no support, How do I have to send this proposal to the W3C Team for a review

Alberto Pacheco
Received on Thursday, 16 May 2002 07:07:57 UTC

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