Browse Source

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

Taddeus Kroes 11 years ago
parent
commit
8d36a78817
1 changed files with 2 additions and 0 deletions
  1. 2 0
      simple.ml

+ 2 - 0
simple.ml

@@ -55,5 +55,7 @@ let compress =
     | Expr value -> Expr (shorten_expr value)
     | Expr value -> Expr (shorten_expr value)
     | Declaration ("font-weight", value, imp) ->
     | Declaration ("font-weight", value, imp) ->
       Declaration ("font-weight", shorten_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
     | v -> v
   end
   end