3 ms·
Off the top of my head, order in CSS is only important when a property is defined multiple times for a given selector, either within the same block or in separa
by tomjakubowski 13y ago
Off the top of my head, order in CSS is only important when a property is defined multiple times for a given selector, either within the same block or in separate ones. Like these examples:
.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.
- garethadams 13y agoYou're forgetting that shorthand properties give multiple ways to set some values. This wouldn't work reversed: { border: 1px solid red; border-bottom-width: 10px; } - http://jsfiddle.net/afXGN/ http://jsfiddle.net/afXGN/
- krasimirtsonev 13y agoActually you care about the ordering if you have same properties applied for same selector. However, AbsurdJS hides this and automatically calculate the latest defined value. And that's what it goes in the compiled file. I need to spend some time using the library to be sure that such problem is actually solved. So, shortly: I can't 100% guarantee that you will not have problems with that.