Commit faa045b9 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Units are now removed from zero values

parent e89a1d7d
...@@ -39,6 +39,9 @@ let rec shorten_expr = function ...@@ -39,6 +39,9 @@ let rec shorten_expr = function
(* TODO: hsl[a](...) *) (* TODO: hsl[a](...) *)
(* 0px -> 0 *)
| Number (0., Some _) -> Number (0., None)
(* transform color names to shorter hex codes and vice-versa *) (* transform color names to shorter hex codes and vice-versa *)
| v -> Color_names.compress v | v -> Color_names.compress v
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment