Links

All links

If statements in CSS today

Lea Verou explains how we could do if statements, that are coming to CSS, today.

She explored various very clever ways to do it.

Great point on abstractions:

Ugliness is only acceptable if it’s encapsulated and not exposed to component users.

(From: Inline conditionals in CSS, now? • Lea Verou)