Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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…
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
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
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
Re: is there anything like this in the future of CSS?
looks efficient to me anyway Jon :)
Offline