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-13 14:45:39 +0100
committerbptato <nincsnevem662@gmail.com>2021-12-13 14:45:39 +0100
commit8edf12e933f490a5adf268a101f320ace8120997 (patch)
tree9d8a7cb775779aec2811728a249ce0eb737cd19e /src/css/values.nim
parent98b7ef37199278a57304cb1a8f73b4de1e21f432 (diff)
downloadchawan-8edf12e933f490a5adf268a101f320ace8120997.tar.gz
Limit display values to those we can actually display
Diffstat (limited to 'src/css/values.nim')
-rw-r--r--src/css/values.nim20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/css/values.nim b/src/css/values.nim
index 8ad2a92a..7d5d5bc5 100644
--- a/src/css/values.nim
+++ b/src/css/values.nim
@@ -436,16 +436,16 @@ func cssDisplay(d: CSSDeclaration): CSSDisplay =
       case $tok.value
       of "block": return DISPLAY_BLOCK
       of "inline": return DISPLAY_INLINE
-      of "inline-block": return DISPLAY_INLINE_BLOCK
-      of "list-item": return DISPLAY_LIST_ITEM
-      of "table": return DISPLAY_TABLE
-      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 "inline-block": return DISPLAY_INLINE_BLOCK
+      # of "list-item": return DISPLAY_LIST_ITEM
+      # of "table": return DISPLAY_TABLE
+      # 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")