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

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 UTC