I encountered an issue while using the rewrite_css configuration. It seems that mod_pagespeed ignores Conditional CSS files inside HTML comments.
<!--[if (IE 7) | (IE 8)]>
<link href="mycss.css" rel="stylesheet"/>
<![endif]-->
However, I found that this workaround does seem to function:
<!--[if (IE 7) | (IE 8)]><!-->
<link href="mycss.css" rel="stylesheet"/>
<!--<![endif]-->
The difference between the two approaches is subtle, with the first one being ignored by browsers that don't support conditional comments, while the second one isn't. For more details on this distinction, refer to: http://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx#dlhidden
Given that altering the page setup could have negative consequences, I am looking for a way to persuade mod_pagespeed to rewrite the css within the comment. Are there any methods to achieve this?