Isn't one crucial problem with this that ES object-literal syntax does not guarantee order? And order is pretty important in CSS, no?
.foo {
font-size: 12px;
font-size: 14px; // later property wins
}
.bar {
font-size: 12px;
}
.bar, .baz {
font-size: 14px; // later property wins
}
And I don't see a way to generate either of those cases only using object literals in this library. {
border: 1px solid red;
border-bottom-width: 10px;
}
- http://jsfiddle.net/afXGN/