Over a million developers have joined DZone.

Lea Verou on CSS3 and Where It's Going

DZone's Guide to

Lea Verou on CSS3 and Where It's Going

· Web Dev Zone
Free Resource

Learn how to build modern digital experience apps with Crafter CMS. Download this eBook now. Brought to you in partnership with Crafter Software

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.

Crafter is a modern CMS platform for building modern websites and content-rich digital experiences. Download this eBook now. Brought to you in partnership with Crafter Software.


Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

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 }}