about summary refs log tree commit diff stats
path: root/src/css
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-11-19 16:03:57 +0100
committerbptato <nincsnevem662@gmail.com>2022-11-19 16:03:57 +0100
commitd4e20ebe854083110a2ed732276848dc0dbd9eb3 (patch)
tree298043a24cdb124d895bb97f0ef01d7345eb3e97 /src/css
parent8292d21bc9c786e5e4cb2ef5531b29d0858a8b7e (diff)
downloadchawan-d4e20ebe854083110a2ed732276848dc0dbd9eb3.tar.gz
Fix table cell size calculation
Diffstat (limited to 'src/css')
-rw-r--r--src/css/values.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/css/values.nim b/src/css/values.nim
index fcd8e068..f323ba8b 100644
--- a/src/css/values.nim
+++ b/src/css/values.nim
@@ -75,7 +75,7 @@ type
 
   CSSTextAlign* = enum
     TEXT_ALIGN_START, TEXT_ALIGN_END, TEXT_ALIGN_LEFT, TEXT_ALIGN_RIGHT,
-    TEXT_ALIGN_CENTER, TEXT_ALIGN_JUSTIFY, TEXT_ALIGN_MOZ_CENTER
+    TEXT_ALIGN_CENTER, TEXT_ALIGN_JUSTIFY, TEXT_ALIGN_CHA_CENTER
 
   CSSListStylePosition* = enum
     LIST_STYLE_POSITION_OUTSIDE, LIST_STYLE_POSITION_INSIDE
@@ -585,7 +585,7 @@ func cssTextAlign(d: CSSDeclaration): CSSTextAlign =
       of "right": TEXT_ALIGN_RIGHT
       of "center": TEXT_ALIGN_CENTER
       of "justify": TEXT_ALIGN_JUSTIFY
-      of "-moz-center": TEXT_ALIGN_MOZ_CENTER
+      of "-cha-center": TEXT_ALIGN_CHA_CENTER
       else: raise newException(CSSValueError, "Invalid text align")
   raise newException(CSSValueError, "Invalid text align")