> CSS is not a programming language - no variables, no functions, no logic<p>How is that an issue and what made you think that it was a programming language?<p>> CSS properties are not cross-browser compatible<p>Neither is the DOM. Both statements are misleading because <i>most</i> CSS properties are cross-browser.<p>> CSS frameworks (haml, sass, less) are meant for server-side templating and we need client-side templating<p>This is a "disadvantage" of CSS frameworks, not of CSS itself.<p>> dynamically including .css files in the DOM does not guarantee CSS classes will be set cross-browser<p>Ok? Are you talking about dynamically including them client or server-side?<p>This site looks rather bland considering that it is promoting a stylesheet framework. Lets take a look at the stylesheet on this very site:<p><pre><code> <style>
body {background-color:#000000; color:#FFFFFF; margin:20px;}
a { color:#FFFFFF;}
a:hover { color:#CCCCCC;}
</style>
</code></pre>
I guess this goes hand-in-hand with the grammar, which is also lacking.<p>Now lets take a look at the sample styling code:<p><pre><code> drip.toolbar.css = {
height : "40px",
width : "89px",
position :"fixed",
right : 50,
bottom : 0,
overflow : "hidden",
cursor : "pointer",
color : "#FEFEFE",
"background-color": "#932c2c",
"text-align" : "left",
"font-family" : "Arial, Helvetica, sans-serif",
"font-size" : "12px",
"#drip-toolbar-button" : {
height : "30px",
width : "50px",
cursor : "pointer",
},
".links" : {
color : "#FEFEFE"
}
</code></pre>
This is different / an improvement on CSS how? You are adding extra characters (double quotes and colon) compared to plain-old css for a more bloated stylesheet that must be downloaded? That might be considered nit-picky, but the benefit here of using JSSS is not obvious (Im still trying to figure it out).<p>Also, the 4 line example is actually 6:<p><pre><code> function parseCSS(id,css){
for(style in css){
if(typeof css[style] == 'object'){parseCSS(style,css[style]);
else{$(id).css(style,css[style]);}
}
};
</code></pre>
Comments have already been made about having javascript disabled. Perhaps a <noscript> tag that would pull down REAL CSS (again, what is the point of this? I am now maintaining CSS and JSSS?) would remedy.