Open aholmes opened 10 years ago
Something that goes into the same direction:
@media (max-width: 750px) {
html, body {
width: 100%;
}
/*
.csstransforms3d {
html, body {
}
}
*/
}
is compiled to:
html, body {
width: 100%;
}
/*
.csstransforms3d {
html, body {
}
}
Any progress on this issue? At a glance, it appears to be a problem in the regular expression:
rules = str.match(/([^\{]+\{(?:[^\{\}]|\{[^\{\}]*\})*\})/g),
No progress as of yet other than on the 4.0.0-development branch.
Contributions are welcome.
Encountered this error too. Was very sporadic in when it would and would not remove comments, which unfortunately sometimes lead to commented out blocks of code being partially commented back in etc...
As an interim solution, we are now minifying our stylesheet BEFORE passing to bless, thus comments are never actually encountered/messed with by bless...
This appears to be the same issue as #15.
When processing a CSS file with commented CSS rules (or any block comment containing brackets, the output is rendered incorrectly.
Input CSS:
Output CSS:
Notice that BRAVO and the immediately proceeding media query are missing.
Expected output CSS is exactly the same as the Input CSS.
$ blessc -v blessc 3.0.2 (CSS Post-Processor) [JavaScript]
$ node -v v0.10.7
OSX 10.8.4.