소스 검색

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