Tagged: css

linked

CSSWG, save us from CSS #

Compass creator and Sass core team member Chris Eppstein on the state of CSS:

The CSS Working Group needs to stop rearranging deck chairs for a while and plug the giant holes first.

He continues:

It is time for native feature detection, it is time for mixins and selector inheritance, it is time for variables, it is time for user-defined functions, it is time for better syntax. Actually, I take that back. It’s way past time. Developers have been demanding variables for their CSS for a decade and that CSS doesn’t have this feature yet is an absolute embarrassment.

I often hear from excited new Sass users that Sass is what CSS should have been. Here's to a day in the future when some of these features make it into the CSS spec and preprocessors can tackle bigger issues like spriting, asset management, and the like.

linked

WebKit gets selector profiler #

There has been a lot of talk lately about CSS selector performance. Thanks to this patch, WebKit nightlies now have a profiler to display performance of your CSS selectors.

Selector
profiler

linked

CSS selector performance breakdown #

Interesting observations from Harry Roberts regarding CSS selector performance:

From this we can see that the difference between IDs/classes and types/descendants is fairly huge… The difference between themselves is slight.

Most of the performance boosts are negligible for most sites, but good tips to keep in mind when writing CSS selectors in general.

All tags