about summary refs log tree commit diff stats
path: root/src/css/values.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2021-12-15 18:32:42 +0100
committerbptato <nincsnevem662@gmail.com>2021-12-15 18:37:48 +0100
commit0a15912b0a6b861f598c5c5780fc6e9aed1abe17 (patch)
tree82b79efdecf46babfe1b6e634c1ba8414557cf46 /src/css/values.nim
parent7458264e02c0b802cd73d8a4256a4226d1e7e35c (diff)
downloadchawan-0a15912b0a6b861f598c5c5780fc6e9aed1abe17.tar.gz
Some parser fixes
Diffstat (limited to 'src/css/values.nim')
-rw-r--r--src/css/values.nim10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/css/values.nim b/src/css/values.nim
index 8a66b863..df80e60d 100644
--- a/src/css/values.nim
+++ b/src/css/values.nim
@@ -529,15 +529,15 @@ func cssDisplay(d: CSSDeclaration): CSSDisplay =
       of "block": return DISPLAY_BLOCK
       of "inline": return DISPLAY_INLINE
       of "list-item": return DISPLAY_LIST_ITEM
-      # of "inline-block": return DISPLAY_INLINE_BLOCK
-      # of "table": return DISPLAY_TABLE
+      of "table": return DISPLAY_TABLE
+      of "inline-block": return DISPLAY_INLINE_BLOCK
+      of "table-row": return DISPLAY_TABLE_ROW
+      of "table-cell": return DISPLAY_TABLE_CELL
+      # of "table-column": return DISPLAY_TABLE_COLUMN
       # of "table-row-group": return DISPLAY_TABLE_ROW_GROUP
       # of "table-header-group": return DISPLAY_TABLE_HEADER_GROUP
       # of "table-footer-group": return DISPLAY_TABLE_FOOTER_GROUP
       # of "table-column-group": return DISPLAY_TABLE_COLUMN_GROUP
-      # of "table-row": return DISPLAY_TABLE_ROW
-      # of "table-column": return DISPLAY_TABLE_COLUMN
-      # of "table-cell": return DISPLAY_TABLE_CELL
       of "none": return DISPLAY_NONE
       else: return DISPLAY_INLINE
   raise newException(CSSValueError, "Invalid display")