Re: CSS Suggestion - based-on:

*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 UTC