});
};
+ removeComments();
+
// replace all escaped line breaks
replace(/\\(\r\n|\n)/mg, '');
- removeComments();
-
// inline all imports
replace(function inlineImports() {
data = CleanCSS._inlineImports(data, {
--- /dev/null
+@media only print{a,a:visited{text-decoration:underline}
+a[href]:after{content:" (" attr(href) ")"}
+abbr[title]:after{content:" (" attr(title) ")"}}
--- /dev/null
+@media print, (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
+ /* Style adjustments for high resolution devices */
+}
+/**===================================================**\
+/** PRINT STYLES
+/**===================================================**/
+@media only print {
+ a,
+ a:visited {
+ text-decoration: underline;
+ }
+ a[href]:after {
+ content: " (" attr(href) ")";
+ }
+ abbr[title]:after {
+ content: " (" attr(title) ")";
+ }
+ /** MANUALLY TRUNCATED FOR BREVITY **/
+}
'should remove comments with forward slashes inside': [
'/*////*/a{color:red}',
'a{color:red}'
+ ],
+ 'should properly handle line breaks and ** characters inside comments': [
+ '/**====**\\\n/**2nd comment line/**===**/a{color:red}',
+ 'a{color:red}'
]
}),
'important comments - one': cssContext({