W3C home > Mailing lists > Public > www-style@w3.org > December 2004

Re: CSS Suggestion - based-on:

From: Christoph Päper <christoph.paeper@tu-clausthal.de>
Date: Fri, 10 Dec 2004 17:09:26 +0100
To: www-style <www-style@w3.org>
Cc: kevin@multiblah.com
Message-ID: <opsisu500wofh7fl@crissov>

*Kevin Cannon* <kevin@multiblah.com>:
>
> e.g. h1 {
>  font-family: Verdana, sans-serif;
>  color: red;
>  etc...
> }
> h2 {
>  based-on: h1;
>  font-size: 1.4em
> }

Grammar issues aside, what do you do on a further

    h1 {
      based-on: h2;
    }

IOW, this opens up for circular dependencies, whereas the current CSS way
(since level 1) does not:

    h1, h2 {
      font-family: Verdana, sans-serif;
      color: red;
    }
    h2 {
     font-size: 1.4em
    }

Okay, to be fair, the cascading rules could probably take care of the
dependency.
Received on Friday, 10 December 2004 16:09:55 GMT

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