about summary refs log tree commit diff stats
path: root/src/css/values.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2021-11-25 23:39:27 +0100
committerbptato <nincsnevem662@gmail.com>2021-11-25 23:39:27 +0100
commitbf3b8804c0fe35f3f5a98ef60c19fde52c415c5e (patch)
treea80eee7ee4abeddbe208e6308ebacd2484a69f54 /src/css/values.nim
parent5cb5a4103188969bb7a3b695a20ddb63b6a86bce (diff)
downloadchawan-bf3b8804c0fe35f3f5a98ef60c19fde52c415c5e.tar.gz
Refactor some parts of the layout engine
Diffstat (limited to 'src/css/values.nim')
-rw-r--r--src/css/values.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/css/values.nim b/src/css/values.nim
index b5de5ec5..54324538 100644
--- a/src/css/values.nim
+++ b/src/css/values.nim
@@ -107,6 +107,8 @@ func cells*(l: CSSLength): int =
   case l.unit
   of UNIT_EM:
     return int(l.num)
+  of UNIT_CH:
+    return int(l.num)
   else:
     #TODO
     return int(l.num / 8)