mirror of
https://github.com/mrclay/minify.git
synced 2025-08-26 23:34:44 +02:00
CSS.php fix for empty comments (/**/)
Added test with @media section: http://sourceforge.net/tracker/index.php?func=detail&aid=1961175&group_id=165715&atid=836476
This commit is contained in:
@@ -190,7 +190,7 @@ class Minify_CSS {
|
|||||||
self::$_inHack = true;
|
self::$_inHack = true;
|
||||||
return '/*\\*/';
|
return '/*\\*/';
|
||||||
}
|
}
|
||||||
if ($m[0] === '/') {
|
if ($m !== '' && $m[0] === '/') {
|
||||||
self::$_inHack = true;
|
self::$_inHack = true;
|
||||||
return '/*/*/';
|
return '/*/*/';
|
||||||
}
|
}
|
||||||
|
@@ -42,3 +42,11 @@ div {
|
|||||||
filter:chroma(color=#aabbcc);
|
filter:chroma(color=#aabbcc);
|
||||||
filter:mask(color=#000000) shadow(color=#9BAD71, direction=135) chroma(color=#000000);
|
filter:mask(color=#000000) shadow(color=#9BAD71, direction=135) chroma(color=#000000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen {
|
||||||
|
/* for IE 5.x-6, hidden from IE 5 Mac */ /*\*/
|
||||||
|
* html div#page {
|
||||||
|
height: 1%;
|
||||||
|
}
|
||||||
|
/**/ /* end hidden from IE 5 Mac */
|
||||||
|
}
|
2
web/test/_test_files/css/hacks.min.css
vendored
2
web/test/_test_files/css/hacks.min.css
vendored
@@ -1 +1 @@
|
|||||||
/*\*/a{}.foo{color:red}/**//*\*//*/@import "ie5mac.css";/**//*/*/.foo{display:block}/**//*/*//*/.foo{display:crazy}/**/div{width:140px;width/**/:/**/100px;width:/**/100px}html>/**/body{}div{width:400px;voice-family: "\"}\"";voice-family:inherit;width:300px}div{filter:chroma(color=#aabbcc);filter:mask(color=#000000) shadow(color=#9BAD71, direction=135) chroma(color=#000000)}
|
/*\*/a{}.foo{color:red}/**//*\*//*/@import "ie5mac.css";/**//*/*/.foo{display:block}/**//*/*//*/.foo{display:crazy}/**/div{width:140px;width/**/:/**/100px;width:/**/100px}html>/**/body{}div{width:400px;voice-family: "\"}\"";voice-family:inherit;width:300px}div{filter:chroma(color=#aabbcc);filter:mask(color=#000000) shadow(color=#9BAD71, direction=135) chroma(color=#000000)}@media screen{/*\*/* html div#page{height:1%}/**/}
|
Reference in New Issue
Block a user