about summary refs log tree commit diff stats
path: root/src/layout
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-06-07 19:46:19 +0200
committerbptato <nincsnevem662@gmail.com>2023-06-07 19:58:42 +0200
commit75310d68b875964c757c73ab1df791cda6fba756 (patch)
treed435fcdd9511bbf6f9f02cf380d7d0c45daaf97b /src/layout
parent578df008d0e2e6ac2d8ee2ad84ccf640f8d07c55 (diff)
downloadchawan-75310d68b875964c757c73ab1df791cda6fba756.tar.gz
Add support for visibility
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/engine.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index 92eeabbc..edc6c2b2 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -1148,6 +1148,8 @@ proc buildTableLayout(table: BlockBox, builder: TableBoxBuilder) =
         dec n
   var y = 0
   for roww in ctx.rows:
+    if roww.builder.computed{"visibility"} == VISIBILITY_COLLAPSE:
+      continue
     y += ctx.blockspacing
     let row = ctx.buildTableRow(roww, table, roww.builder)
     row.offset.y += y