Browse Source

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

Taddeus Kroes 11 năm trước cách đây
mục cha
commit
8d36a78817
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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