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

Units-functions in CSS3

From: Petr Stanicek <pixy@volny.cz>
Date: Wed, 10 Jul 2002 18:09:59 +0200
To: <www-style@w3.org>
Message-ID: <B95228F7.282A%pixy@volny.cz>

Hello,

I read CSS3 drafts, but I couldn't find anything about things I'm missing in
CSS - things like this:

- unit/value "same". This may be useful for keeping same (calculated) values
of properties in different objects while changing one of them (while
rendering, by a script, by user-interaction etc.) E.g.:

    #boxone { height:auto }
    #boxtwo { height:same(#boxone) }
or
    #boxone { height:same(#boxtwo) }
    #boxtwo { height:same(#boxone) }
or
    .boxes { width:same }   /* value = max. width of all .boxes */


- tools for "design inhertance". This means something like internal classes
to simplify CSS definitions and make them easily editable. E.g.:

    @class code { font-family:monospace; white-space:nowrap; color:#999; }
    .codetext1 { class:code; background:#f0f0f0; }
    .codetext2 { class:code; background:#e4e4e4; }
or
    .codetext { font-family:monospace; white-space:nowrap; color:#999; }
    .codetext1 { parent:.codetext; background:#f0f0f0; }
    .codetext2 { parent:.codetext; background:#e4e4e4; }
    

Did I miss something like this in the CSS3 drafts? Or, if not, is there a
way to discuss future implementation of similar features?


___________ ,_ ____________________________________________
Petr P. STANICEK                                 aka -pixy-
Received on Wednesday, 10 July 2002 12:10:29 GMT

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