Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-05-02 16:55:32

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

is there anything like this in the future of CSS?

I’m tired of creating rules like this:

<code>#main p {……..}</code>
<code>#main ul {……..}</code>
<code>#main li {……..}</code>
<code>etc</code>

Do anyone know if in the future of CSS there will be something like the following?

<code>#main [
p {……..}
ul {……..}
li {……..}
etc
]
</code>

Yeah… I know… the future is unknown…


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#2 2006-05-02 19:53:55

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: is there anything like this in the future of CSS?

While it could be done, it adds another level of abstraction when designing the parser as CSS is tokenized at lexical level .

It would be a major undertaking for a different reason though, I think. Without getting into using CSS DTD’s, it would also likely break both backward compatibility which CSS is specifically designed to maintain and future expansion/modification which CSS is designed to support. The problem with the DTD approach is of course that they would break backward compatibility as well. You’de be back to the situation of designing multiple stylesheets for various age browsers again (or moreso than currently).


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

#3 2006-05-05 17:04:29

Alex McKee
Member
From: Gloucester, UK
Registered: 2005-12-17
Posts: 59
Website

Re: is there anything like this in the future of CSS?

@rules are probably going to extend to the point where we’ll be looking at this type of thing by CSS4.

Offline

#4 2006-05-06 09:23:31

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: is there anything like this in the future of CSS?

That would be nice— an @ rule would, well, rule. For now, I’ve settled with indentations to pretend my CSS is cool and efficient:

<pre>
<code>
#content { font: 1.2em serif;
} #content li { list-style: inside; }
</code>
</pre>

Last edited by deldindesign (2006-05-06 09:27:43)

Offline

#5 2006-05-08 13:19:32

Alex McKee
Member
From: Gloucester, UK
Registered: 2005-12-17
Posts: 59
Website

Re: is there anything like this in the future of CSS?

looks efficient to me anyway Jon :)

Offline

Board footer

Powered by FluxBB