這是Closure Stylesheets中的一個錯誤。我正在修復。
基本上,GssParserCC.jj
需要改變第59行:
private static final Pattern FUNCTIONS_WITH_SPACE_SEP_OK = Pattern.compile(
"(?:-(?:O|MOZ|WEBKIT|MS)-)?(?:REPEATING-)?(?:LINEAR|RADIAL)-GRADIENT"
+ "|RECT|-WEBKIT-GRADIENT|-KHTML-GRADIENT",
Pattern.CASE_INSENSITIVE);
和CssFunctionNode.java
需要有-khtml-gradient
添加到其列表中。
不過,這不會解決所有問題,因爲封閉樣式不承認但以下幾點:
border-radius: 0 \0;
特別是,它是被扔它關閉斜線。
雖然即使我更換符合:
border-radius: 0;
然後我得到各個種類的96個錯誤。
--allow-unrecognized-functions
得到這個數字下降到85
其餘85的外觀是這樣的形式:
Detected multiple identical, non-alternate declarations in the same ruleset. If this is intentional please use the /* @alternate */ annotation. background-image:[-o-linear-gradient(top,#5bc0de,#339bb9)] in bootstrap.css at line 1872 column 1:
沒有標誌,來禁止這種類型的時刻警告。
這次談話可能是最好的對http://code.google.com/p/closure-stylesheets/issues/list在
部分修復檢查:http://code.google.com/p/closure-stylesheets/source/detail?r=e1b66f7c9a72da09fd9876e6e1d243620aaf1cea – bolinfest