3 ms·
Please read Håkon Wium Lie's PhD thesis http://people.opera.com/howcome/2006/phd/ http://people.opera.com/howcome/2006/phd/ to understand the reasoning behind
by yannis 13y ago
Please read Håkon Wium Lie's PhD thesis http://people.opera.com/howcome/2006/phd/ http://people.opera.com/howcome/2006/phd/ to understand the reasoning behind the development of CSS. I think it was going in the right direction, although the ride got bumpy when committees and commercial interests started getting involved. Its major objective was to achieve separation of content from presentation which it achieved and I think you being unfair in your statement about CSS not being great for its original use case.
CSS did borrow concepts from TeX at the time. I agree with you that if it had borrowed more from TeX maybe we would have avoided Javascript and also we would have benefited from an updated model for TeX and I said so at http://tex.stackexchange.com/a/6463/963 http://tex.stackexchange.com/a/6463/963.
Maybe is time to revisit and revamp both.
- Pxtl 13y ago> Its major objective was to achieve separation of content from presentation which it achieved and I think you being unfair in your statement about CSS not being great for its original use case. I have never seen this fully implemented except in the simplest of blog-engine layouts and toy examples. There is always some pollution of the markup, at the very least in the form of the ordering of elements. A template-based approach would've provided the same semantics a lot sooner than a decade of half-baked CSS hacks.