about summary refs log tree commit diff stats
path: root/src/css/csstree.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/css/csstree.nim')
-rw-r--r--src/css/csstree.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/css/csstree.nim b/src/css/csstree.nim
index 80d73758..79872920 100644
--- a/src/css/csstree.nim
+++ b/src/css/csstree.nim
@@ -263,6 +263,11 @@ proc getParent(frame: var TreeFrame; computed: CSSValues; display: CSSDisplay):
     if frame.computed{"list-style-position"} == ListStylePositionOutside and
         frame.children.len >= 2:
       return frame.children[1].anonChildren
+  of DisplayTableCell:
+    if frame.anonComputed == nil:
+      frame.anonComputed = frame.inheritFor(DisplayFlowRoot)
+      frame.children.add(initStyledAnon(frame.parent, frame.anonComputed))
+    return frame.children[^1].anonChildren
   elif display in DisplayInternalTable:
     return frame.addAnonTable(parentDisplay, display)
   else: