<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: CSS Variables are next?</title>
	<atom:link href="http://ajaxian.com/archives/css-variables-are-next/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/css-variables-are-next</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 09 Feb 2012 06:55:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: Ajaxester</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-265757</link>
		<dc:creator>Ajaxester</dc:creator>
		<pubDate>Wed, 09 Jul 2008 12:47:31 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-265757</guid>
		<description>#
#
@variables {
#
  CorporateLogoBGColor: #fe8d12;
#
}
#
 
#
div.logoContainer {
#
  background-color: var(CorporateLogoBGColor);
#
}
#
 


This code is not working properly. please give another or complete code so that we can use effectively.
cheers :)</description>
		<content:encoded><![CDATA[<p>#<br />
#<br />
@variables {<br />
#<br />
  CorporateLogoBGColor: #fe8d12;<br />
#<br />
}<br />
#</p>
<p>#<br />
div.logoContainer {<br />
#<br />
  background-color: var(CorporateLogoBGColor);<br />
#<br />
}<br />
#</p>
<p>This code is not working properly. please give another or complete code so that we can use effectively.<br />
cheers :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wendyslash</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-265570</link>
		<dc:creator>wendyslash</dc:creator>
		<pubDate>Tue, 01 Jul 2008 05:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-265570</guid>
		<description>Variables alone wouldn&#039;t sell hard. But expression is a must. Imagine I define a standard margin for all my paragraph, I want to be able to have double margin with expression 

2 * val(@margin_variable)

and gosh, it is getting more complex. Variables require their accompanion expression, access to DOM values and so on.</description>
		<content:encoded><![CDATA[<p>Variables alone wouldn&#8217;t sell hard. But expression is a must. Imagine I define a standard margin for all my paragraph, I want to be able to have double margin with expression </p>
<p>2 * val(@margin_variable)</p>
<p>and gosh, it is getting more complex. Variables require their accompanion expression, access to DOM values and so on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: simplehack</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-265543</link>
		<dc:creator>simplehack</dc:creator>
		<pubDate>Mon, 30 Jun 2008 16:50:39 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-265543</guid>
		<description>Oh joy, another layer to debug. :P</description>
		<content:encoded><![CDATA[<p>Oh joy, another layer to debug. :P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AotearoanBlue</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-263219</link>
		<dc:creator>AotearoanBlue</dc:creator>
		<pubDate>Mon, 28 Apr 2008 03:44:05 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-263219</guid>
		<description>ded,

.corporate-font {
font-family: arial;
font-size: 1em;
}
.corporate-text {
color: red;
}
.corporate {
.corporateFont;
.corporateText;
}

this was how I always imagined it! Never thought of variables in CSS.</description>
		<content:encoded><![CDATA[<p>ded,</p>
<p>.corporate-font {<br />
font-family: arial;<br />
font-size: 1em;<br />
}<br />
.corporate-text {<br />
color: red;<br />
}<br />
.corporate {<br />
.corporateFont;<br />
.corporateText;<br />
}</p>
<p>this was how I always imagined it! Never thought of variables in CSS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rbiggs</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-263215</link>
		<dc:creator>rbiggs</dc:creator>
		<pubDate>Mon, 28 Apr 2008 01:09:12 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-263215</guid>
		<description>First of all, when Microsoft introduces &quot;new features&quot; to the standards, it&#039;s proprietary. When Webkit introduces something new, guess what, you can download the source code and see how they implemented it. Because Webkit is open source, any other browser vendor can down load Webkit&#039;s source to see how they did it and then implement it in their browser. And the Webkit team is not just Apple, it includes Adobe, Nokia, Google and many smaller players in the open source world.</description>
		<content:encoded><![CDATA[<p>First of all, when Microsoft introduces &#8220;new features&#8221; to the standards, it&#8217;s proprietary. When Webkit introduces something new, guess what, you can download the source code and see how they implemented it. Because Webkit is open source, any other browser vendor can down load Webkit&#8217;s source to see how they did it and then implement it in their browser. And the Webkit team is not just Apple, it includes Adobe, Nokia, Google and many smaller players in the open source world.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ded</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-263169</link>
		<dc:creator>ded</dc:creator>
		<pubDate>Sat, 26 Apr 2008 18:59:03 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-263169</guid>
		<description>I like the way commenter ronselling does it above since it allows combining multiple rules. On the other hand, we can take the microformat philosophy and not introduce any new variables or language additions. We should simply be able to do this:
&lt;code&gt;.corporate-font {
  font-family: arial;
  font-size: 1em;
}
.corporate-text {
  color: red;
}
.corporate {
  .corporateFont;
  .corporateText;
}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I like the way commenter ronselling does it above since it allows combining multiple rules. On the other hand, we can take the microformat philosophy and not introduce any new variables or language additions. We should simply be able to do this:<br />
<code>.corporate-font {<br />
  font-family: arial;<br />
  font-size: 1em;<br />
}<br />
.corporate-text {<br />
  color: red;<br />
}<br />
.corporate {<br />
  .corporateFont;<br />
  .corporateText;<br />
}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GregHouston</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-263163</link>
		<dc:creator>GregHouston</dc:creator>
		<pubDate>Sat, 26 Apr 2008 00:53:35 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-263163</guid>
		<description>Regarding the so-called double standard for Safari and Internet Explorer, the issue is not as simple as most people are trying to reduce it. Trevor makes a good point about the difference between standards and interoperability.
Â¶
Someone else mentioned that we would rather IE be playing catch up right now rather than trying to innovate. This is another incredibly good point.
Â¶
Also, I am truthfully a little weary of IE innovations in general, not so much because their ideas may be bad, but because IE&#039;s implementation of even their own ideas is often rather poor and unintuitive. In the last five thousand lines of JavaScript I have coded over the last few months, 90% of the workarounds are for IE. About 7% of the workarounds are for Opera, and about 3% are for Firefox. For Safari I have not written a single workaround. To date Safari does exactly what I expect it to do, and faster and more smoothly then any of the other browsers.
Â¶
Safari has my full support to innovate right now. Firefox does for the most part. Opera just made some much appreciated speed improvements for graphics intensive applications in 9.5b2, though I would like to see more work in this area, but they too have my support in innovating. IE on the other hand is way behind in interoperability and in support of standards. They are still trying to pretend that  and SVG do not exist.
Â¶
I don&#039;t know if there is a term for creating things that don&#039;t do what the user expects, but Microsoft has raised this to an artform. You do 1+1 and are certain the result will be 2, but instead Microsoft returns 1 - MS + foo in one situation, 1 + PI * foo in another, and so on, but never 2. It takes a hundred extra lines of code to get MS to output 2. Part of this seems to be due to a lack of testing before releasing functionality. Part is due to not getting enough developer feedback, i.e., MS has shown a rather low interest in developer feedback in general. Part is also due to MS treating developers like children and trying to guess or interpret what result they really want, rather than simply giving the logical result. If I ask for 1+1, I really want 2. I don&#039;t want MS to try to guess why I am asking for 1+1 and thus give me 1 - MS + Foo. I worked with .NET for almost a year, and refuse to ever touch it again for this very reason. There seems to be multiple contributing factors involved in MS not giving precise, intuitive and consistent results.
Â¶
With Safari, I never have to think about Safari. As the coder I feel in command. I say do this, and it does it, and it does it really well. With IE I may have to spend several hours each day trying to find the right way to ask it to do what I am asking of it. I ask for blue and it shows me a picture of an elephant. It is like IE has a mental handicap.</description>
		<content:encoded><![CDATA[<p>Regarding the so-called double standard for Safari and Internet Explorer, the issue is not as simple as most people are trying to reduce it. Trevor makes a good point about the difference between standards and interoperability.<br />
Â¶<br />
Someone else mentioned that we would rather IE be playing catch up right now rather than trying to innovate. This is another incredibly good point.<br />
Â¶<br />
Also, I am truthfully a little weary of IE innovations in general, not so much because their ideas may be bad, but because IE&#8217;s implementation of even their own ideas is often rather poor and unintuitive. In the last five thousand lines of JavaScript I have coded over the last few months, 90% of the workarounds are for IE. About 7% of the workarounds are for Opera, and about 3% are for Firefox. For Safari I have not written a single workaround. To date Safari does exactly what I expect it to do, and faster and more smoothly then any of the other browsers.<br />
Â¶<br />
Safari has my full support to innovate right now. Firefox does for the most part. Opera just made some much appreciated speed improvements for graphics intensive applications in 9.5b2, though I would like to see more work in this area, but they too have my support in innovating. IE on the other hand is way behind in interoperability and in support of standards. They are still trying to pretend that  and SVG do not exist.<br />
Â¶<br />
I don&#8217;t know if there is a term for creating things that don&#8217;t do what the user expects, but Microsoft has raised this to an artform. You do 1+1 and are certain the result will be 2, but instead Microsoft returns 1 &#8211; MS + foo in one situation, 1 + PI * foo in another, and so on, but never 2. It takes a hundred extra lines of code to get MS to output 2. Part of this seems to be due to a lack of testing before releasing functionality. Part is due to not getting enough developer feedback, i.e., MS has shown a rather low interest in developer feedback in general. Part is also due to MS treating developers like children and trying to guess or interpret what result they really want, rather than simply giving the logical result. If I ask for 1+1, I really want 2. I don&#8217;t want MS to try to guess why I am asking for 1+1 and thus give me 1 &#8211; MS + Foo. I worked with .NET for almost a year, and refuse to ever touch it again for this very reason. There seems to be multiple contributing factors involved in MS not giving precise, intuitive and consistent results.<br />
Â¶<br />
With Safari, I never have to think about Safari. As the coder I feel in command. I say do this, and it does it, and it does it really well. With IE I may have to spend several hours each day trying to find the right way to ask it to do what I am asking of it. I ask for blue and it shows me a picture of an elephant. It is like IE has a mental handicap.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans Schmucker</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-263161</link>
		<dc:creator>Hans Schmucker</dc:creator>
		<pubDate>Fri, 25 Apr 2008 23:46:22 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-263161</guid>
		<description>OK, this is just plain stupid... there&#039;s no need for it at all, we can already do this with stuff that exists within the standard using entities, so why would we want another non-standard way. True, the entity way doesn&#039;t work for external stylesheets, but if we want to fix that we should think first of what we already have and see the point where it fails: Referenced CSS is not interpreted as an XML string, but rather a flat text. Does this make sense? No, it was simply done because it was easier. So instead of doing this abomination we should redefine external CSS files as XML text nodes, which wouldn&#039;t change anything for existing code AFAIK (I might be wrong here, but I don&#039;t think there are any valid CSS characters that need to be escaped in XML), but would allow for this and other benefits of XML. At the same time this should be put up as a recommendation so that others can implement it in a similar fashion. If other vendors adopt it, it should become a required part of any future XHTML standard</description>
		<content:encoded><![CDATA[<p>OK, this is just plain stupid&#8230; there&#8217;s no need for it at all, we can already do this with stuff that exists within the standard using entities, so why would we want another non-standard way. True, the entity way doesn&#8217;t work for external stylesheets, but if we want to fix that we should think first of what we already have and see the point where it fails: Referenced CSS is not interpreted as an XML string, but rather a flat text. Does this make sense? No, it was simply done because it was easier. So instead of doing this abomination we should redefine external CSS files as XML text nodes, which wouldn&#8217;t change anything for existing code AFAIK (I might be wrong here, but I don&#8217;t think there are any valid CSS characters that need to be escaped in XML), but would allow for this and other benefits of XML. At the same time this should be put up as a recommendation so that others can implement it in a similar fashion. If other vendors adopt it, it should become a required part of any future XHTML standard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mdmadph</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-263151</link>
		<dc:creator>mdmadph</dc:creator>
		<pubDate>Fri, 25 Apr 2008 18:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-263151</guid>
		<description>Like Tora said, I&#039;ve never really needed any CSS variables -- just overlap your definitions like in his example.</description>
		<content:encoded><![CDATA[<p>Like Tora said, I&#8217;ve never really needed any CSS variables &#8212; just overlap your definitions like in his example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HudsonTavares</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-263150</link>
		<dc:creator>HudsonTavares</dc:creator>
		<pubDate>Fri, 25 Apr 2008 18:14:59 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-263150</guid>
		<description>I don&#039;t think that CSS variables are needed that much; we already can do things like declaring CSS on a [insert-your-language-here] page and then serve it using the text/css MIME type. So, you can combine all the power of [insert-your-language-here] with your CSS.

Ok, this possibility isn&#039;t always true, you also need to do the things in the static way. But, i&#039;ll be lots of times more satisfied when (and if) CSS3 become fully-implemented (ok, 80% is enough by now :) ) on IE.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think that CSS variables are needed that much; we already can do things like declaring CSS on a [insert-your-language-here] page and then serve it using the text/css MIME type. So, you can combine all the power of [insert-your-language-here] with your CSS.</p>
<p>Ok, this possibility isn&#8217;t always true, you also need to do the things in the static way. But, i&#8217;ll be lots of times more satisfied when (and if) CSS3 become fully-implemented (ok, 80% is enough by now :) ) on IE.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JeromeLapointe</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-263147</link>
		<dc:creator>JeromeLapointe</dc:creator>
		<pubDate>Fri, 25 Apr 2008 17:58:30 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-263147</guid>
		<description>I agree with PuckPuck to a certain extent.
When people dump on Microsoft they don&#039;t say... we don&#039;t like your idea... they just tell MS to stop doing anything outside the standards.

If you force everyone to wait for something to become standardized you kill innovation but... innovation must follow certain rules... extend on the standard without breaking the standard. It should stick to the philosophy behind the standard.

But the thing is you cannot play with your toys before you clean up your room. I don&#039;t think this kind of stuff would have been acceptable from MS before seeing as they were doing so poorly with the standards... you don&#039;t try your hand at extending the standard if you can&#039;t implement it properly to an acceptable level.</description>
		<content:encoded><![CDATA[<p>I agree with PuckPuck to a certain extent.<br />
When people dump on Microsoft they don&#8217;t say&#8230; we don&#8217;t like your idea&#8230; they just tell MS to stop doing anything outside the standards.</p>
<p>If you force everyone to wait for something to become standardized you kill innovation but&#8230; innovation must follow certain rules&#8230; extend on the standard without breaking the standard. It should stick to the philosophy behind the standard.</p>
<p>But the thing is you cannot play with your toys before you clean up your room. I don&#8217;t think this kind of stuff would have been acceptable from MS before seeing as they were doing so poorly with the standards&#8230; you don&#8217;t try your hand at extending the standard if you can&#8217;t implement it properly to an acceptable level.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MorganRoderick</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-263145</link>
		<dc:creator>MorganRoderick</dc:creator>
		<pubDate>Fri, 25 Apr 2008 17:49:38 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-263145</guid>
		<description>CSS variables are certainly a much desired and needed feature. I hope this proposal get&#039;s some real consideration, and perhaps even some useful comments by the other browser vendors.

It doesn&#039;t really matter who brought it to the table, it&#039;s decent proposal, that deserves attention from both browser vendors and the standards bodies.</description>
		<content:encoded><![CDATA[<p>CSS variables are certainly a much desired and needed feature. I hope this proposal get&#8217;s some real consideration, and perhaps even some useful comments by the other browser vendors.</p>
<p>It doesn&#8217;t really matter who brought it to the table, it&#8217;s decent proposal, that deserves attention from both browser vendors and the standards bodies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cb1kenobi</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-263143</link>
		<dc:creator>cb1kenobi</dc:creator>
		<pubDate>Fri, 25 Apr 2008 17:41:38 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-263143</guid>
		<description>Alex Russell already wrote about this plus the idea of rule inheritance: http://alex.dojotoolkit.org/?p=625</description>
		<content:encoded><![CDATA[<p>Alex Russell already wrote about this plus the idea of rule inheritance: <a href="http://alex.dojotoolkit.org/?p=625" rel="nofollow">http://alex.dojotoolkit.org/?p=625</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PuckPuck</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-263142</link>
		<dc:creator>PuckPuck</dc:creator>
		<pubDate>Fri, 25 Apr 2008 17:20:44 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-263142</guid>
		<description>So Apple calls it @variable... later on in life Mozilla decides that calling it @var makes more sense.  Some other time, Microsoft decides, that all you need is something like a dollar sign ($) or pound symbol (#) to define the variable.

All browsers are supporting a variables syntax, and are in effect evolving the standards, but they are mutually incompatible.  This is exactly what happened with IE (5/6), Netscape, and later on Firefox.

I am all for evolving the standards, but, it should be done in a way that all competing vendors are in full agreement with, or is quickly adopted by the standards body.

Maybe this just points to a deeper bigger problem, in that standards body are far too slow to react.  Standards bodies, should be proactive, not reactive, and because they are the inverse we will continuously be doing the browser wars thing.  So maybe the problem isn&#039;t Microsoft, or Apple, or Mozilla.  The problem is W3C and company.

PS: If Microsoft said they were doing this with standards compliant IE8, everyone here would be saying how Microsoft needs to stop creating their own standards... that&#039;s a double standard.</description>
		<content:encoded><![CDATA[<p>So Apple calls it @variable&#8230; later on in life Mozilla decides that calling it @var makes more sense.  Some other time, Microsoft decides, that all you need is something like a dollar sign ($) or pound symbol (#) to define the variable.</p>
<p>All browsers are supporting a variables syntax, and are in effect evolving the standards, but they are mutually incompatible.  This is exactly what happened with IE (5/6), Netscape, and later on Firefox.</p>
<p>I am all for evolving the standards, but, it should be done in a way that all competing vendors are in full agreement with, or is quickly adopted by the standards body.</p>
<p>Maybe this just points to a deeper bigger problem, in that standards body are far too slow to react.  Standards bodies, should be proactive, not reactive, and because they are the inverse we will continuously be doing the browser wars thing.  So maybe the problem isn&#8217;t Microsoft, or Apple, or Mozilla.  The problem is W3C and company.</p>
<p>PS: If Microsoft said they were doing this with standards compliant IE8, everyone here would be saying how Microsoft needs to stop creating their own standards&#8230; that&#8217;s a double standard.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JonathanLeech</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-263141</link>
		<dc:creator>JonathanLeech</dc:creator>
		<pubDate>Fri, 25 Apr 2008 17:17:30 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-263141</guid>
		<description>There is no reason to do this, to make CSS 1% of a programming language. You can already combine selectors to give umpteen elements the same color. And you can also compress the .css,  so the argument that this would make the resulting CSS smaller has no merit. Finally, a robust system should keep its style in a seperate data store than CSS, for example a database, XML file, etc. and generate the CSS from it, using  a REAL programming language, with variables and many other usseful programming constructs.</description>
		<content:encoded><![CDATA[<p>There is no reason to do this, to make CSS 1% of a programming language. You can already combine selectors to give umpteen elements the same color. And you can also compress the .css,  so the argument that this would make the resulting CSS smaller has no merit. Finally, a robust system should keep its style in a seperate data store than CSS, for example a database, XML file, etc. and generate the CSS from it, using  a REAL programming language, with variables and many other usseful programming constructs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vcarter</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-263138</link>
		<dc:creator>vcarter</dc:creator>
		<pubDate>Fri, 25 Apr 2008 16:32:54 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-263138</guid>
		<description>To me this just adds more complexity to something that by design, should be simple.  CSS is a collection of style declarations, nothing more, whether you have 1 declaration or 100 that is still all it really is.  By their very nature, adding variables to anything makes that thing less stable and more complicated.  I guess the possible benefits of adding a variables to CSS do not equal the possible issues.</description>
		<content:encoded><![CDATA[<p>To me this just adds more complexity to something that by design, should be simple.  CSS is a collection of style declarations, nothing more, whether you have 1 declaration or 100 that is still all it really is.  By their very nature, adding variables to anything makes that thing less stable and more complicated.  I guess the possible benefits of adding a variables to CSS do not equal the possible issues.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JasonP</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-263135</link>
		<dc:creator>JasonP</dc:creator>
		<pubDate>Fri, 25 Apr 2008 16:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-263135</guid>
		<description>there is another way to accomplish CSS variables, though it is of limited usefulness, and that is to use XML Entities. 

Works in Opera and firefox, and I expect IE in standards mode as well as Webkit(don&#039;t have IE or webkit at home to test with), but it only works on inline stylesheets not those referenced with  elements. 

Something like this make sure it is served as xhtml or it won&#039;t work. 



]&gt;

	
		
                     h1 { color:&amp;h1color;;}
                		
	
	
		I should be red!!
	
</description>
		<content:encoded><![CDATA[<p>there is another way to accomplish CSS variables, though it is of limited usefulness, and that is to use XML Entities. </p>
<p>Works in Opera and firefox, and I expect IE in standards mode as well as Webkit(don&#8217;t have IE or webkit at home to test with), but it only works on inline stylesheets not those referenced with  elements. </p>
<p>Something like this make sure it is served as xhtml or it won&#8217;t work. </p>
<p>]&gt;</p>
<p>                     h1 { color:&h1color;;}</p>
<p>		I should be red!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: posure</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-263134</link>
		<dc:creator>posure</dc:creator>
		<pubDate>Fri, 25 Apr 2008 15:56:04 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-263134</guid>
		<description>@PuckPuck
I think that is a combination of everyone being sandy with having to work around IE6 along with the vocal portion of the web community tends to have a hard-on for Apple products. IE7 has good standards support (not 100%, but close) so I don&#039;t see that as being a convincing argument as to why its acceptable for Apple but not Microsoft. I agree that it is a pretty unfair double standard, and honestly I&#039;ve never seen what the big issue about extra non-standard functionality is anyways, how is the web going to advance if no one tries anything? Are we just supposed to wait five years for another standards proposal?</description>
		<content:encoded><![CDATA[<p>@PuckPuck<br />
I think that is a combination of everyone being sandy with having to work around IE6 along with the vocal portion of the web community tends to have a hard-on for Apple products. IE7 has good standards support (not 100%, but close) so I don&#8217;t see that as being a convincing argument as to why its acceptable for Apple but not Microsoft. I agree that it is a pretty unfair double standard, and honestly I&#8217;ve never seen what the big issue about extra non-standard functionality is anyways, how is the web going to advance if no one tries anything? Are we just supposed to wait five years for another standards proposal?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-263132</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Fri, 25 Apr 2008 15:47:47 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-263132</guid>
		<description>&quot;Why is it ok for Appleâ€™s webkit to introduce non-standard functionality, but itâ€™s a shame if Microsoft does?&quot;
.
Because web developers don&#039;t understand the differences between strict adherence to standards on the one hand, and interoperability on the other hand. Or that we should be demanding the latter rather than the former. Because the demand of the former creates an inevitable hypocritical contradiction between what we want and what we demand.
.
Incidentally this is an excellent subject in which to bring up the standards vs interoperability issue, as CSS variables has been in demand at least as long as web developers have been standards advocates. The two demands have lived in conflict as long as either has been around.
.
The problem that IE and Netscape(!) created was that they were not only advancing new non-standard extensions to HTML, CSS and Javascript but that they were doing so in ways that were mutually incompatible, rapid-fire and often incompatible with short lived previous versions of their own browsers. What this meant was a web which was not only non-standard but absolutely devoid of de facto standards, until IE6 stagnated.
.
There is nothing at all wrong with, and should be nothing objectionable about, sensibly introducing non-standard extensions in the context of the web. Especially given that the web standards process is almost entirely dependent on current practice, it&#039;s likely that these extensions will eventually either become actual standards or will become de facto standard by widespread browser adoption, within a browser generation or two. And especially being that their approach is actually within the scope of existing standards: they advance proposals for that which they want to see made standard immediately, and that which is unstable gets a UA-specific prefix like -webkit- or -moz- or -o- or -ms-.
.
@Jon Hartmann: I really don&#039;t think Webkit is anywhere near 100% standards compliance. That said, it&#039;s definitely the most standards compliant of the current generation of browsers.</description>
		<content:encoded><![CDATA[<p>&#8220;Why is it ok for Appleâ€™s webkit to introduce non-standard functionality, but itâ€™s a shame if Microsoft does?&#8221;<br />
.<br />
Because web developers don&#8217;t understand the differences between strict adherence to standards on the one hand, and interoperability on the other hand. Or that we should be demanding the latter rather than the former. Because the demand of the former creates an inevitable hypocritical contradiction between what we want and what we demand.<br />
.<br />
Incidentally this is an excellent subject in which to bring up the standards vs interoperability issue, as CSS variables has been in demand at least as long as web developers have been standards advocates. The two demands have lived in conflict as long as either has been around.<br />
.<br />
The problem that IE and Netscape(!) created was that they were not only advancing new non-standard extensions to HTML, CSS and Javascript but that they were doing so in ways that were mutually incompatible, rapid-fire and often incompatible with short lived previous versions of their own browsers. What this meant was a web which was not only non-standard but absolutely devoid of de facto standards, until IE6 stagnated.<br />
.<br />
There is nothing at all wrong with, and should be nothing objectionable about, sensibly introducing non-standard extensions in the context of the web. Especially given that the web standards process is almost entirely dependent on current practice, it&#8217;s likely that these extensions will eventually either become actual standards or will become de facto standard by widespread browser adoption, within a browser generation or two. And especially being that their approach is actually within the scope of existing standards: they advance proposals for that which they want to see made standard immediately, and that which is unstable gets a UA-specific prefix like -webkit- or -moz- or -o- or -ms-.<br />
.<br />
@Jon Hartmann: I really don&#8217;t think Webkit is anywhere near 100% standards compliance. That said, it&#8217;s definitely the most standards compliant of the current generation of browsers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronselling</title>
		<link>http://ajaxian.com/archives/css-variables-are-next/comment-page-1#comment-263131</link>
		<dc:creator>ronselling</dc:creator>
		<pubDate>Fri, 25 Apr 2008 15:34:27 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3592#comment-263131</guid>
		<description>Excellent idea, this is what CSS needs. Old browsers will be a problem, but it should be quite easy to &#039;generate&#039; a &#039;classic&#039;-css version out of the new ones.

Why not go al the way and go more OO?

@corporateFont {
	color: #FF0;
	font-size: 10px;
	font-family: serif;
	line-height: 20px;
}

@corporateText {
	@corporateFont;
	color: #FFF;
}


p {
	@corporateText;
	background-color: #000;
}

.do {
	@corporateFont;
	font-size: 9px;
}</description>
		<content:encoded><![CDATA[<p>Excellent idea, this is what CSS needs. Old browsers will be a problem, but it should be quite easy to &#8216;generate&#8217; a &#8216;classic&#8217;-css version out of the new ones.</p>
<p>Why not go al the way and go more OO?</p>
<p>@corporateFont {<br />
	color: #FF0;<br />
	font-size: 10px;<br />
	font-family: serif;<br />
	line-height: 20px;<br />
}</p>
<p>@corporateText {<br />
	@corporateFont;<br />
	color: #FFF;<br />
}</p>
<p>p {<br />
	@corporateText;<br />
	background-color: #000;<br />
}</p>
<p>.do {<br />
	@corporateFont;<br />
	font-size: 9px;<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

