about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/layout/engine.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index 45662888..c5536517 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -1226,9 +1226,9 @@ proc flushTableRow(ctx: var InnerBlockContext) =
     if ctx.blockgroup.parent.computed{"display"} == DISPLAY_TABLE_ROW:
       ctx.blockgroup.parent.children.add(ctx.anonRow)
     else:
-      var wrappervals = ctx.styledNode.computed.inheritProperties()
-      wrappervals{"display"} = DISPLAY_TABLE
       if ctx.anonTable == nil:
+        var wrappervals = ctx.styledNode.computed.inheritProperties()
+        wrappervals{"display"} = DISPLAY_TABLE
         ctx.anonTable = getTableBox(wrappervals)
       ctx.anonTable.children.add(ctx.anonRow)
     ctx.anonRow = nil