<?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 3 and where we could be</title>
	<atom:link href="http://ajaxian.com/archives/css-3-and-where-we-could-be/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/css-3-and-where-we-could-be</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: Justin</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-256510</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Wed, 03 Oct 2007 21:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-256510</guid>
		<description>This is a great idea.  I can&#039;t tell you how many times I could have used this technique in the past.  So I made a little script that can easily allow the @define and @importRule functionality into your CSS files.  I just released a basic version of it, and will be adding more options to it soon, so make some comments on my blog about what you&#039;d like in it.

http://lazywebmastertools.com/blog</description>
		<content:encoded><![CDATA[<p>This is a great idea.  I can&#8217;t tell you how many times I could have used this technique in the past.  So I made a little script that can easily allow the @define and @importRule functionality into your CSS files.  I just released a basic version of it, and will be adding more options to it soon, so make some comments on my blog about what you&#8217;d like in it.</p>
<p><a href="http://lazywebmastertools.com/blog" rel="nofollow">http://lazywebmastertools.com/blog</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-256081</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Wed, 26 Sep 2007 11:34:31 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-256081</guid>
		<description>I think we should also see support for multiple background images and positioning in a single element. Sure we can use multiple elements (aka tag soup) within other elements to produce the same effect, but NOT ALWAYS. For example, say I want to style a form button with the sliding doors method of design for stretchable element styling. I can&#039;t insert a  inside an input or button tag, that&#039;s preposterous! But how will I ever achieve the capability to ever make my buttons look as sweet as Safari&#039;s or Firefox&#039;s otherwise? Exactly, I&#039;m not.

I propose something like this:
input[type=button], input[type=submit], button {
  background: {image1} {repeat} {attachment} {position} {z-index};
  background: {image2} {repeat} {attachment} {position} {z-index};
}

Alternately, the &quot;z-index&quot; of each background image within the rule could be determined by the order it appears within the rule, such as: first is on the bottom, second is just above it, and the last image is the top-most image. 

At the very least, let us apply multiple backgrounds to one element through the use of multiple classes. I know this goes against theory of web design (in that you can only apply one background image to an element), but we&#039;re seriously limiting ourselves. The Web is a dynamic medium, and it&#039;s &quot;designability&quot; should be dynamic as well.

I think laziness has overcome the w3c. It&#039;s truly sad. Now that IE 7 is out, we&#039;re gonna have to wait much longer to see any css3 support from IE at all, even if the w3c gets their act together and starts striding towards finalizing it.</description>
		<content:encoded><![CDATA[<p>I think we should also see support for multiple background images and positioning in a single element. Sure we can use multiple elements (aka tag soup) within other elements to produce the same effect, but NOT ALWAYS. For example, say I want to style a form button with the sliding doors method of design for stretchable element styling. I can&#8217;t insert a  inside an input or button tag, that&#8217;s preposterous! But how will I ever achieve the capability to ever make my buttons look as sweet as Safari&#8217;s or Firefox&#8217;s otherwise? Exactly, I&#8217;m not.</p>
<p>I propose something like this:<br />
input[type=button], input[type=submit], button {<br />
  background: {image1} {repeat} {attachment} {position} {z-index};<br />
  background: {image2} {repeat} {attachment} {position} {z-index};<br />
}</p>
<p>Alternately, the &#8220;z-index&#8221; of each background image within the rule could be determined by the order it appears within the rule, such as: first is on the bottom, second is just above it, and the last image is the top-most image. </p>
<p>At the very least, let us apply multiple backgrounds to one element through the use of multiple classes. I know this goes against theory of web design (in that you can only apply one background image to an element), but we&#8217;re seriously limiting ourselves. The Web is a dynamic medium, and it&#8217;s &#8220;designability&#8221; should be dynamic as well.</p>
<p>I think laziness has overcome the w3c. It&#8217;s truly sad. Now that IE 7 is out, we&#8217;re gonna have to wait much longer to see any css3 support from IE at all, even if the w3c gets their act together and starts striding towards finalizing it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zack Frazier</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-256048</link>
		<dc:creator>zack Frazier</dc:creator>
		<pubDate>Tue, 25 Sep 2007 15:59:35 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-256048</guid>
		<description>Am I the only one whose stomach drops when imagining the potential mess of CSS this could cause? It is too easy for developers to blindly copy CSS without understanding the rules of specificity and not using the big C in CSS to their advantage. This is a real problem now.

Imagine debugging this gem spread across 5 or 6 styesheets ...

.highlight { color: red; }
.sidebar a {
 @importRule â€˜.highlightâ€™;
  font-weight: bold !important;
}
#foot a { color: blue; }
#foot p.right a {
 @importRule â€˜.sidebar a&#039;;
 font-weight: normal;
}

I only see it getting worse from there.

We all have ideas of what would make our day-to-day work easier. I would like to see print/paged media concepts extended to the screen world so as to better separate unrelated content. Like ...

@screen #foot {
  .vcard { color: gray; }
  .legal { color: white; }
}

I can see problems here too though because my main goal is to avoid typing it this way...

#foot .vcard { color: gray; }
#foot .legal { color: white; }

Namespacing in CSS 3.0 combined with XHTML 1.1 modularization offers solutions to many of our current &quot;problems&quot; that are more forward-thinking than mine above. I&#039;d like to see more pressure on the browser makers and the W3C to get moving.

If you haven&#039;t done it, look at Prince XML (the most up-to-date CSS engine I&#039;ve used). If you don&#039;t know this already, you&#039;ll learn that CSS is for more than HTML and that Microsoft really does/did have the box model wrong. At the very last though, I can guarantee that you&#039;ll want those selectors NOW.

I can&#039;t imagine a Web 2.1 without CSS 3.0 and XHTML 1.1.</description>
		<content:encoded><![CDATA[<p>Am I the only one whose stomach drops when imagining the potential mess of CSS this could cause? It is too easy for developers to blindly copy CSS without understanding the rules of specificity and not using the big C in CSS to their advantage. This is a real problem now.</p>
<p>Imagine debugging this gem spread across 5 or 6 styesheets &#8230;</p>
<p>.highlight { color: red; }<br />
.sidebar a {<br />
 @importRule â€˜.highlightâ€™;<br />
  font-weight: bold !important;<br />
}<br />
#foot a { color: blue; }<br />
#foot p.right a {<br />
 @importRule â€˜.sidebar a&#8217;;<br />
 font-weight: normal;<br />
}</p>
<p>I only see it getting worse from there.</p>
<p>We all have ideas of what would make our day-to-day work easier. I would like to see print/paged media concepts extended to the screen world so as to better separate unrelated content. Like &#8230;</p>
<p>@screen #foot {<br />
  .vcard { color: gray; }<br />
  .legal { color: white; }<br />
}</p>
<p>I can see problems here too though because my main goal is to avoid typing it this way&#8230;</p>
<p>#foot .vcard { color: gray; }<br />
#foot .legal { color: white; }</p>
<p>Namespacing in CSS 3.0 combined with XHTML 1.1 modularization offers solutions to many of our current &#8220;problems&#8221; that are more forward-thinking than mine above. I&#8217;d like to see more pressure on the browser makers and the W3C to get moving.</p>
<p>If you haven&#8217;t done it, look at Prince XML (the most up-to-date CSS engine I&#8217;ve used). If you don&#8217;t know this already, you&#8217;ll learn that CSS is for more than HTML and that Microsoft really does/did have the box model wrong. At the very last though, I can guarantee that you&#8217;ll want those selectors NOW.</p>
<p>I can&#8217;t imagine a Web 2.1 without CSS 3.0 and XHTML 1.1.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marty</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-255988</link>
		<dc:creator>Marty</dc:creator>
		<pubDate>Mon, 24 Sep 2007 13:23:01 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-255988</guid>
		<description>And another thing:

Why is CSS selector syntax so similar to -- yet so different from -- XPath?</description>
		<content:encoded><![CDATA[<p>And another thing:</p>
<p>Why is CSS selector syntax so similar to &#8212; yet so different from &#8212; XPath?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jonah</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-255953</link>
		<dc:creator>jonah</dc:creator>
		<pubDate>Sun, 23 Sep 2007 04:06:29 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-255953</guid>
		<description>Umh...What CSS frameworks?</description>
		<content:encoded><![CDATA[<p>Umh&#8230;What CSS frameworks?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adnan Siddiqi</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-255947</link>
		<dc:creator>Adnan Siddiqi</dc:creator>
		<pubDate>Sat, 22 Sep 2007 20:53:29 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-255947</guid>
		<description>speaking of Importing rules, right now you can&#039;t use same RULE from different CSS files on a tag. For instance both my friend and me wrote a rule &quot;header&quot; with different attributes. If I am liking both .css files, both rules will get merged since I can&#039;t refer rule from particular file on a particular tag for instance




Correct me if I am saying wrong?</description>
		<content:encoded><![CDATA[<p>speaking of Importing rules, right now you can&#8217;t use same RULE from different CSS files on a tag. For instance both my friend and me wrote a rule &#8220;header&#8221; with different attributes. If I am liking both .css files, both rules will get merged since I can&#8217;t refer rule from particular file on a particular tag for instance</p>
<p>Correct me if I am saying wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arve Bersvendsen</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-255942</link>
		<dc:creator>Arve Bersvendsen</dc:creator>
		<pubDate>Sat, 22 Sep 2007 16:25:23 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-255942</guid>
		<description>&lt;blockquote&gt;What is being described is an excellent idea â€¦ for a PREPROCESSOR, not for the CSS standard.

What value is added by having the client figure out what a page building environment can precalculate?&lt;/blockquote&gt;

Exactly none. One of the things that makes CSS usable is that it can be parsed in exactly one pass, without having to perform lookups or substitutions, or actually do anything beyond actually just parsing, which means that the parser can start immediately, be done a short time after loading, and just apply the parsed rules.  Adding substitions and constants (and xpath selectors, as other people have suggested to me in the past), would just end up in users seeing a lot more &lt;abbr title=&quot;Flash Of Unstyled Content&quot;&gt;FOUC&lt;/abbr&gt; than they do now.</description>
		<content:encoded><![CDATA[<blockquote><p>What is being described is an excellent idea â€¦ for a PREPROCESSOR, not for the CSS standard.</p>
<p>What value is added by having the client figure out what a page building environment can precalculate?</p></blockquote>
<p>Exactly none. One of the things that makes CSS usable is that it can be parsed in exactly one pass, without having to perform lookups or substitutions, or actually do anything beyond actually just parsing, which means that the parser can start immediately, be done a short time after loading, and just apply the parsed rules.  Adding substitions and constants (and xpath selectors, as other people have suggested to me in the past), would just end up in users seeing a lot more <abbr title="Flash Of Unstyled Content">FOUC</abbr> than they do now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will Peavy</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-255931</link>
		<dc:creator>Will Peavy</dc:creator>
		<pubDate>Sat, 22 Sep 2007 00:15:25 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-255931</guid>
		<description>I could write a custom stylesheet and a script to dynamically generate styles in the time it takes to write a blog posting complaining about standards... The W3C has a lot of stakeholders asking for a lot of different things - and in a situation like that you can&#039;t please everyone. The profession of building web pages has come a long way in the last 10 years, and I think the W3C is a big part of that.</description>
		<content:encoded><![CDATA[<p>I could write a custom stylesheet and a script to dynamically generate styles in the time it takes to write a blog posting complaining about standards&#8230; The W3C has a lot of stakeholders asking for a lot of different things &#8211; and in a situation like that you can&#8217;t please everyone. The profession of building web pages has come a long way in the last 10 years, and I think the W3C is a big part of that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J Christopher Garcia</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-255929</link>
		<dc:creator>J Christopher Garcia</dc:creator>
		<pubDate>Fri, 21 Sep 2007 23:30:20 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-255929</guid>
		<description>If you wait for a standard, you may wait forever. 

I think the pre-processor route is the way to go because it doesn&#039;t rely on third-party support and ultimately there&#039;s nothing wrong with CSS. CSS is fine, it works -- but it would be nice if we could manage it more effectively. 

No one expects the HTML spec to change to support all the functionality PHP, ASP, JSP, etc. provides, we shouldn&#039;t expect the CSS spec to either. And we shouldn&#039;t expect others to do it.

Many CSS authors have expressed interest in variables, constants, includes, rule nesting, and inheritance. Here&#039;s 2 projects that have some of this functionality (I helped write Switch):

Switch CSS Pre-processor: http://sourceforge.net/projects/switchcss/

CSS Server-side Pre-processor: http://www.shauninman.com/archive/2007/06/27/css_server_side_pre_processor

If you are interested in this functionality, support these projects and others like them.</description>
		<content:encoded><![CDATA[<p>If you wait for a standard, you may wait forever. </p>
<p>I think the pre-processor route is the way to go because it doesn&#8217;t rely on third-party support and ultimately there&#8217;s nothing wrong with CSS. CSS is fine, it works &#8212; but it would be nice if we could manage it more effectively. </p>
<p>No one expects the HTML spec to change to support all the functionality PHP, ASP, JSP, etc. provides, we shouldn&#8217;t expect the CSS spec to either. And we shouldn&#8217;t expect others to do it.</p>
<p>Many CSS authors have expressed interest in variables, constants, includes, rule nesting, and inheritance. Here&#8217;s 2 projects that have some of this functionality (I helped write Switch):</p>
<p>Switch CSS Pre-processor: <a href="http://sourceforge.net/projects/switchcss/" rel="nofollow">http://sourceforge.net/projects/switchcss/</a></p>
<p>CSS Server-side Pre-processor: <a href="http://www.shauninman.com/archive/2007/06/27/css_server_side_pre_processor" rel="nofollow">http://www.shauninman.com/archive/2007/06/27/css_server_side_pre_processor</a></p>
<p>If you are interested in this functionality, support these projects and others like them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Holton</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-255925</link>
		<dc:creator>Mark Holton</dc:creator>
		<pubDate>Fri, 21 Sep 2007 20:13:33 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-255925</guid>
		<description>Agree completely with what Alex highlighted here.  It is needed.  It is basic.  Developers all want this, so why are they dragging their feet with the standard???</description>
		<content:encoded><![CDATA[<p>Agree completely with what Alex highlighted here.  It is needed.  It is basic.  Developers all want this, so why are they dragging their feet with the standard???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-255921</link>
		<dc:creator>Evan</dc:creator>
		<pubDate>Fri, 21 Sep 2007 19:16:02 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-255921</guid>
		<description>What is being described is an excellent idea ... for a PREPROCESSOR, not for the CSS standard.

What value is added by having the client figure out what a page building environment can precalculate?</description>
		<content:encoded><![CDATA[<p>What is being described is an excellent idea &#8230; for a PREPROCESSOR, not for the CSS standard.</p>
<p>What value is added by having the client figure out what a page building environment can precalculate?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marat Denenberg</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-255919</link>
		<dc:creator>Marat Denenberg</dc:creator>
		<pubDate>Fri, 21 Sep 2007 18:36:05 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-255919</guid>
		<description>The @importRule thing is silly. Proposed code:

.highlight {
  color: red;
  text-decoration: underline;
}
        
.updated {
  @importRule &#039;.highlight&#039;;
  background-color: yellow;
}
        
.updatedByOthers {
  @importRule &#039;.updated&#039;;
  color: #3f5070; /* a nice dark blue */
}

Current CSS code that accomplishes the same thing:

.highlight, .updated, .updatedByOthers {
  color: red;
  text-decoration: underline;
}
        
.updated, .updatedByOthers {
  background-color: yellow;
}
        
.updatedByOthers {
  color: #3f5070;
}

Perhaps rather than wasting time inventing new things we can focus on learning how to use the CSS that is already available? However, I do agree that constants would certainly be useful, especially in large CSS sheets ... but you can already do that with a server side language. CSS can be dynamically generated.</description>
		<content:encoded><![CDATA[<p>The @importRule thing is silly. Proposed code:</p>
<p>.highlight {<br />
  color: red;<br />
  text-decoration: underline;<br />
}</p>
<p>.updated {<br />
  @importRule &#8216;.highlight&#8217;;<br />
  background-color: yellow;<br />
}</p>
<p>.updatedByOthers {<br />
  @importRule &#8216;.updated&#8217;;<br />
  color: #3f5070; /* a nice dark blue */<br />
}</p>
<p>Current CSS code that accomplishes the same thing:</p>
<p>.highlight, .updated, .updatedByOthers {<br />
  color: red;<br />
  text-decoration: underline;<br />
}</p>
<p>.updated, .updatedByOthers {<br />
  background-color: yellow;<br />
}</p>
<p>.updatedByOthers {<br />
  color: #3f5070;<br />
}</p>
<p>Perhaps rather than wasting time inventing new things we can focus on learning how to use the CSS that is already available? However, I do agree that constants would certainly be useful, especially in large CSS sheets &#8230; but you can already do that with a server side language. CSS can be dynamically generated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Hill</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-255912</link>
		<dc:creator>Sam Hill</dc:creator>
		<pubDate>Fri, 21 Sep 2007 17:46:24 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-255912</guid>
		<description>Let&#039;s skip things that can be handled programatically and move on to other things...</description>
		<content:encoded><![CDATA[<p>Let&#8217;s skip things that can be handled programatically and move on to other things&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damir Secki</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-255907</link>
		<dc:creator>Damir Secki</dc:creator>
		<pubDate>Fri, 21 Sep 2007 16:09:02 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-255907</guid>
		<description>Huh!
It is really important to have this articles and conversations. I am feeling that web standards are stagnating! Take HTML4 for example, its the same for many, too many years. And the implementation of the css3 standards are taking awfully long!

and yes, I would kill for css constants and this kind of import rules. And most of all I would kill to have M$ to respect all the standards and to have somekind of windows update to upadte 6.0 and 7.0 too!</description>
		<content:encoded><![CDATA[<p>Huh!<br />
It is really important to have this articles and conversations. I am feeling that web standards are stagnating! Take HTML4 for example, its the same for many, too many years. And the implementation of the css3 standards are taking awfully long!</p>
<p>and yes, I would kill for css constants and this kind of import rules. And most of all I would kill to have M$ to respect all the standards and to have somekind of windows update to upadte 6.0 and 7.0 too!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cedric</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-255905</link>
		<dc:creator>cedric</dc:creator>
		<pubDate>Fri, 21 Sep 2007 16:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-255905</guid>
		<description>Here you go:
http://www.veerwest.com/sandbox/importrule/
(basic importRule implementation in javascript)</description>
		<content:encoded><![CDATA[<p>Here you go:<br />
<a href="http://www.veerwest.com/sandbox/importrule/" rel="nofollow">http://www.veerwest.com/sandbox/importrule/</a><br />
(basic importRule implementation in javascript)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sb</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-255904</link>
		<dc:creator>sb</dc:creator>
		<pubDate>Fri, 21 Sep 2007 15:30:28 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-255904</guid>
		<description>I recall reading an article by, I believe, one of the people who made the initial CSS1 standard. He said they left out OO-like extension of classes because it would make CSS too complicated. He had some examples to show exactly why. The problem was mostly precedence: for example, if subClass extends parentClass, then which selector goes first: &quot;div.parentClass&quot; or &quot;.subClass&quot;? That would make a mess, eventually. 

This importRule mechanism seems to solve those complexities. However, what does, a statement like importRule &quot;div.class&quot; refer to? Does it import all rules with pattern exactly equal to &quot;div.class&quot;, or does it import styles by cascading? Would it also import &quot;.class&quot; rules, for instance? That would make things messy, too, but as long as you refer to exactly one rule, it seems simple enough. 

So my proposal would be to allow for &quot;named rules&quot;, or &quot;rule templates&quot;. For instance:
&lt;code&gt;
@template(&#039;big&#039;) {
font-size: 200%;
}

.class {
@importTemplate &#039;big&#039;;
}

.other {
@importTemplate &#039;big&#039;;
... more ...
}
&lt;/code&gt;
That seeems cleaner, easier to use and easier to implement.</description>
		<content:encoded><![CDATA[<p>I recall reading an article by, I believe, one of the people who made the initial CSS1 standard. He said they left out OO-like extension of classes because it would make CSS too complicated. He had some examples to show exactly why. The problem was mostly precedence: for example, if subClass extends parentClass, then which selector goes first: &#8220;div.parentClass&#8221; or &#8220;.subClass&#8221;? That would make a mess, eventually. </p>
<p>This importRule mechanism seems to solve those complexities. However, what does, a statement like importRule &#8220;div.class&#8221; refer to? Does it import all rules with pattern exactly equal to &#8220;div.class&#8221;, or does it import styles by cascading? Would it also import &#8220;.class&#8221; rules, for instance? That would make things messy, too, but as long as you refer to exactly one rule, it seems simple enough. </p>
<p>So my proposal would be to allow for &#8220;named rules&#8221;, or &#8220;rule templates&#8221;. For instance:<br />
<code><br />
@template('big') {<br />
font-size: 200%;<br />
}</p>
<p>.class {<br />
@importTemplate 'big';<br />
}</p>
<p>.other {<br />
@importTemplate 'big';<br />
... more ...<br />
}<br />
</code><br />
That seeems cleaner, easier to use and easier to implement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Murray</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-255902</link>
		<dc:creator>James Murray</dc:creator>
		<pubDate>Fri, 21 Sep 2007 15:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-255902</guid>
		<description>damn nevermind, you all know</description>
		<content:encoded><![CDATA[<p>damn nevermind, you all know</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Murray</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-255901</link>
		<dc:creator>James Murray</dc:creator>
		<pubDate>Fri, 21 Sep 2007 15:11:42 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-255901</guid>
		<description>oh my html didn&#039;t show up

here it is 
&lt;code&gt;
blahblah
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>oh my html didn&#8217;t show up</p>
<p>here it is<br />
<code><br />
blahblah<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Murray</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-255900</link>
		<dc:creator>James Murray</dc:creator>
		<pubDate>Fri, 21 Sep 2007 15:10:34 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-255900</guid>
		<description>i understand that it would be cool too have the importrule thing, infact, i&#039;d use it.

but isn&#039;t that the same as giving an element 2 classes in the first place

blah blah</description>
		<content:encoded><![CDATA[<p>i understand that it would be cool too have the importrule thing, infact, i&#8217;d use it.</p>
<p>but isn&#8217;t that the same as giving an element 2 classes in the first place</p>
<p>blah blah</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donegarden</title>
		<link>http://ajaxian.com/archives/css-3-and-where-we-could-be/comment-page-1#comment-255897</link>
		<dc:creator>Donegarden</dc:creator>
		<pubDate>Fri, 21 Sep 2007 14:56:04 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2804#comment-255897</guid>
		<description>Since I&#039;m using SASS (http://haml.hamptoncatlin.com/docs/sass) to generate CSS my life has changed. The insertion of Variables, clean syntax really ease the way you are developing web apps.</description>
		<content:encoded><![CDATA[<p>Since I&#8217;m using SASS (<a href="http://haml.hamptoncatlin.com/docs/sass" rel="nofollow">http://haml.hamptoncatlin.com/docs/sass</a>) to generate CSS my life has changed. The insertion of Variables, clean syntax really ease the way you are developing web apps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

