Credit Card IconEnquiring about a charge on your credit card? Find out who we are, what we do and what is the charge about.

 

Welcome to VeerWest.com

We're the small & dedicated team behind the popular web application FormAssembly.com. Here, we like to talk about the (many) challenges we face and the (few) things we learn while running an online business.

Thank you for stopping by.

Alex Russell’s @importRule

So Alex Russell (of Dojo fame), not too happy about where CSS3 is going, suggests of a few more important things that should be considered for inclusion in the CSS standard. For instance, an @importRule directive.

Several commenters have pointed out that @importRule would not be that useful since you can already assign more than one CSS class to an element.

However, having (apparently) some time to waste this morning, I thought it would be interesting to implement this pseudo css rule anyway.

Here’s the example page, with a short explanation of the (very simplistic) javascript:

Again, I’m not claiming that this is very useful, but if one wanted to create a javascript css post-processor, that would be a good way to start.

Leave a Reply