<?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</title>
	<atom:link href="http://movabletripe.com/archive/css-variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://movabletripe.com/archive/css-variables/</link>
	<description>Making up launch dates since 1982</description>
	<lastBuildDate>Thu, 02 Sep 2010 09:30:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nick</title>
		<link>http://movabletripe.com/archive/css-variables/comment-page-1/#comment-53208</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Tue, 09 Feb 2010 17:44:58 +0000</pubDate>
		<guid isPermaLink="false">http://movabletripe.com/archive/css-variables/#comment-53208</guid>
		<description>Assuming this is something you do during development, could you write a little perl script to do a search-and-replace on the variables and just manually run it after you make a change?</description>
		<content:encoded><![CDATA[<p>Assuming this is something you do during development, could you write a little perl script to do a search-and-replace on the variables and just manually run it after you make a change?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose Diaz-Gonzalez</title>
		<link>http://movabletripe.com/archive/css-variables/comment-page-1/#comment-46341</link>
		<dc:creator>Jose Diaz-Gonzalez</dc:creator>
		<pubDate>Mon, 13 Oct 2008 06:34:58 +0000</pubDate>
		<guid isPermaLink="false">http://movabletripe.com/archive/css-variables/#comment-46341</guid>
		<description>http://disruptive-innovations.com/zoo/cssvariables/

Something like this seems to be what you are looking for, no?</description>
		<content:encoded><![CDATA[<p><a href="http://disruptive-innovations.com/zoo/cssvariables/" rel="nofollow">http://disruptive-innovations.com/zoo/cssvariables/</a></p>
<p>Something like this seems to be what you are looking for, no?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://movabletripe.com/archive/css-variables/comment-page-1/#comment-216</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Thu, 11 May 2006 08:56:30 +0000</pubDate>
		<guid isPermaLink="false">http://movabletripe.com/archive/css-variables/#comment-216</guid>
		<description>The exact same ideas bounced around in my head a while back (albeit a PHP version), but like you have already mentioned, it is not portable and requires server-side processing. This is not really the main goal of CSS in the first place.

Also, at least in the case of PHP, the CSS file would need to be parsed by the server in order to pick up the variable, therefore contributing to the overall speed of the pages&#039; delivery. This of course is only a theoretical loss in speed and relative to your particular requirements and/or server load, but none-the-less is something to take into consideration.

There are certainly a number of &#039;hacks&#039; (for want of a better word) that can be implemented to achieve variables in CSS. If you are really keen (and don&#039;t mind offending a few very old browsers) you can even GZIP your css after the server parses it to save a little time in page delivery.

However, all of these points take away from what CSS is all about, at least for me anyhow.

The beauty of CSS is it&#039;s simplicity and portability, and to complicate your stylesheets with server-side tags and PHP variables as well as restrict its portability negates the whole reason for me wanting native CSS variables in the first place - simplicity!

When the solution creates more work than the problem, then it is not really a solution. I think the dream result here would be basic, native, and entirely client-side CSS variable support. But I am not about to hold my breath.</description>
		<content:encoded><![CDATA[<p>The exact same ideas bounced around in my head a while back (albeit a PHP version), but like you have already mentioned, it is not portable and requires server-side processing. This is not really the main goal of CSS in the first place.</p>
<p>Also, at least in the case of PHP, the CSS file would need to be parsed by the server in order to pick up the variable, therefore contributing to the overall speed of the pages&#8217; delivery. This of course is only a theoretical loss in speed and relative to your particular requirements and/or server load, but none-the-less is something to take into consideration.</p>
<p>There are certainly a number of &#8216;hacks&#8217; (for want of a better word) that can be implemented to achieve variables in CSS. If you are really keen (and don&#8217;t mind offending a few very old browsers) you can even GZIP your css after the server parses it to save a little time in page delivery.</p>
<p>However, all of these points take away from what CSS is all about, at least for me anyhow.</p>
<p>The beauty of CSS is it&#8217;s simplicity and portability, and to complicate your stylesheets with server-side tags and PHP variables as well as restrict its portability negates the whole reason for me wanting native CSS variables in the first place &#8211; simplicity!</p>
<p>When the solution creates more work than the problem, then it is not really a solution. I think the dream result here would be basic, native, and entirely client-side CSS variable support. But I am not about to hold my breath.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darren Chamberlain</title>
		<link>http://movabletripe.com/archive/css-variables/comment-page-1/#comment-215</link>
		<dc:creator>Darren Chamberlain</dc:creator>
		<pubDate>Thu, 11 May 2006 03:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://movabletripe.com/archive/css-variables/#comment-215</guid>
		<description>My solution to this problem is almost exactly what you describe, but I do it in a Movable Type template:

&lt;code&gt;&lt;MTSetVar name=&quot;color&quot; value=&quot;#025a9e&quot;&gt;&lt;/code&gt;

And then I use it like:

&lt;code&gt;.someClass { color: &lt;MTGetVar name=&quot;color&quot;&gt;; }

When the stylesheet rebuilds, the color comes out as static text.  It seems a decent, if a non-portable, solution.&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>My solution to this problem is almost exactly what you describe, but I do it in a Movable Type template:</p>
<p><code>&lt;MTSetVar name="color" value="#025a9e"&gt;</code></p>
<p>And then I use it like:</p>
<p><code>.someClass { color: &lt;MTGetVar name="color"&gt;; }</p>
<p>When the stylesheet rebuilds, the color comes out as static text.  It seems a decent, if a non-portable, solution.</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
