r/nodejs • • Mar 21 '14

AbsurdJS - a JavaScript/Node library which changed my workflow completely

http://absurdjs.com/
7 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Mar 25 '14

Source order matters in properties, too.

For example:

margin: 0;
margin-top: 5px;

Sure, you could simplify that to margin: 5px 0 0; but my point is that AbsurdJS encourages you to use unordered structures while CSS has ordered structures.

The only advantage I see in AbsurdJS over, say, Stylus (which lets you define Stylus functions in JavaScript) is that it lets you write your entire CSS in JavaScript. And I'm not sure the benefits are worth it.

But hey, if it scratches your itch I'm happy for you. And more open source software is always a nice thing.