css ファイルを手動でより少なく変換しています。ブラウザ固有の css を実行する方法を見つけようとしています。サイトに記載されているように ~"" を使用してエスケープしようとしましたが、コードのブロック全体では機能しないようです。
IE の場合、これらは機能します。
padding: ~"5px\9"; /* IE8 and below */
*padding:4px; /* IE7 and below */
_padding:2px; /* IE6 */
そしてChromeの場合、これは機能します:
/* This will apply the styling only to Chrome and Safari */
@media screen and (-webkit-min-device-pixel-ratio:0) {
#mySelector {
color: red;
}
}
しかし、Firefox はどうでしょうか。次のようなものをエスケープするにはどうすればよいですか:
/* This will apply the styling only to Firefox */
@-moz-document url-prefix() {
#mySelector {
color: red;
}
}