浏览代码

Added hotfix for border:none -> border:0 optimisation (planning to do something more extensive)

Taddeus Kroes 11 年之前
父节点
当前提交
8d36a78817
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      simple.ml

+ 2 - 0
simple.ml

@@ -55,5 +55,7 @@ let compress =
     | Expr value -> Expr (shorten_expr value)
     | Declaration ("font-weight", value, imp) ->
       Declaration ("font-weight", shorten_font_weight value, imp)
+    | Declaration (("border" | "outline") as name, Ident "none", imp) ->
+      Declaration (name, Number (0., None), imp)
     | v -> v
   end