News for hackers. Stuff that matters.
Re:Idea: When (if) statements in CSS by schmolzer on Monday June 04, 2012 @10:58AM (#4064266)
I don't really see why this syntax can't work as CSS does today? The last style with equal "weight". This idea can be implemented with the same idea.
Re:Idea: When (if) statements in CSS by ars on Monday June 04, 2012 @09:54PM (#4066939)
The weight rules applies to any specific element on the page, but this is different.

You can make one rule depend on another, and then that rules depends on the first. This can cause a loop.

You could ignore one I guess, but how do you decide which? Do you use css order? Do you use the order of the page? What is there is an inline style? What is two elements have the style?

It's better not to make a syntax that can get you into trouble like that.