NV / CSSOM

Unmaintained! ⚠️ CSS Object Model implemented in pure JavaScript. Also, a CSS parser.
https://nv.github.io/CSSOM/docs/parse.html
MIT License
751 stars 99 forks source link

Less CSS and suchlike #31

Closed ghost closed 12 years ago

ghost commented 12 years ago

Is there a way to extend functionality for things like nested rules in Less etc?

NV commented 12 years ago

That would be problematic. Why don't you just use https://github.com/cloudhead/less.js?

ghost commented 12 years ago

There is no way with the Less parser to find the character index in the CSS that coresponds to the parsed value.

tj commented 12 years ago

-11111

NV commented 12 years ago

I see. Well, I don't have plans to make CSSOM parse Less or any other CSS preprocessor.

ghost commented 12 years ago

No problem, was worth a shot.

It seems to be a bit of a mission if you need a parser that keeps track of where the various tokens are in the original css... I wonder how Espresso etc. on OSX do it.