Over a million developers have joined DZone.

Lea Verou on CSS3 and Where It's Going

· Web Dev Zone

Make the transition to Node.js if you are a Java, PHP, Rails or .NET developer with these resources to help jumpstart your Node.js knowledge plus pick up some development tips.  Brought to you in partnership with IBM.

Sometimes CSS3 is cool, sometimes practical -- best when it's both.

Actually, that 'practical' link is pretty cool too -- and no surprise, since its author is Lea Verou, famous guru and evangelist of CSS awesome.

Recently she addressed the problem of divergent browser implementations of CSS -- an old problem, still not fully solved -- with a JavaScript preprocessor that detects the user's browser and adds the appropriate prefixes to CSS properties everywhere on the page. Basically this means that CSS developers don't need to worry about browser implementation (at least for most modern browsers).

Some developers objected to Lea's use of JavaScript to fix this kind of problem. (For one thing, it's not 'pure CSS'.)

In yesterday's interview with Chris Coyier of css-tricks.com, Lea answers these objections, defends SVG (it's much more powerful, even if more difficult than pure CSS) and talks about the future of CSS.

As a teaser, here's what she had to say about attr():

My favorite CSS3 feature that doesn't have enough implementations yet is the CSS3 generalization of attr(). In CSS2.1, we can use attr() in the content property, to use attribute values in generated content. In CSS3, we're supposed to be able to use attr() in every property, which will greatly reduce presentational JavaScript code. Unfortunately, only IE9 supports it, and not fully. If only developers realized how many use cases it simplifies and started pushing browser vendors for it!

An interesting favorite choice, to be sure.

Read the full interview for much more.

Learn why developers are gravitating towards Node and its ability to retain and leverage the skills of JavaScript developers and the ability to deliver projects faster than other languages can.  Brought to you in partnership with IBM.


Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}