css minifier breaks with a particular rule
Design and Skin Customization
I have some print styles in my css, but the minifier doesn't cope with the first rule which causes a little chaos.
The style is this:
@media print {
*,
*:before,
*:after {
color: #000 !important;
text-shadow: none !important;
background: transparent !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
}
...
@media print {color: #000 !important;text-shadow: none !important;background: transparent !important;-webkit-box-shadow: none !important;box-shadow: none !important;}
...
After some investigation it seems that the print styles themselves are fine, the others work, but the following style from Twitter Bootstrap is broken by the minifier which in my case breaks the surrounding print style:
*,
*:before,
*:after {
color: #000 !important;
text-shadow: none !important;
background: transparent !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
}
updated by @ultrajam: 01/21/16 03:54:14PM