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

Re: Treemodel look-a-like syntax for CSS: possible ?

From: (wrong string) äper <christoph.paeper@tu-clausthal.de>
Date: Mon, 16 Dec 2002 20:08:31 +0100
Message-ID: <055701c2a536$860cd480$3ef4ae8b@heim4.tuclausthal.de>
To: <www-style@w3.org>
Cc: "Robert..." <wilde825@planet.nl>

Robert...:
>
> A few days ago the idea came up, to use CSS like the model of the real
> document, the document model. This way it would represent the structure of
> the document much better than it does in css1/2.

CSS is by no means a mark-up language and doesn't need to represent the
document tree. In fact it's more powerful if it doesn't. IIRC there's a
stylesheet language similar to your idea--DSSSL?

> form.stlFormElement
> {
>     div
>     {   color: red;
>         span
>         {
>             input
>             {   font-weight: bold; }
>         }
>     }
> }
>
> Is this possible ?

It'd break some, if not all, exisiting implementations.

> Would it be usefull

No. Nested selectors aren't as powerful as CSS's current selectors (with
",", "+", ">", " ").

Christoph Päper
Received on Monday, 16 December 2002 14:08:30 GMT

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