backbone-boilerplate / grunt-bbb-styles

WIP Grunt BBB styles compilation.
MIT License
0 stars 2 forks source link

Removed use of CSSOM for parsed stylesheet output #3

Closed ryno1234 closed 10 years ago

ryno1234 commented 11 years ago

Known issue with CSSOM library where duplicate rules are ignored. This makes using the particularly library for output unreliable and unable to guarantee parity with the original stylesheet's intentions.

Simply put, we use Regex for parsing instead of a CSS parser. The Regex will not be as accurate, but I believe when weighed out against the CSSOM library output, the benefit outweighs the risk until another library is found and implemented which doesn't focus on standards based parsing.

tbranyen commented 10 years ago

Pretty awesome. Thanks for this!

ryno1234 commented 10 years ago

Welcome!