diff options
author | bptato <nincsnevem662@gmail.com> | 2023-10-26 13:40:56 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-10-26 13:40:56 +0200 |
commit | 2fd8b25755d44534ef402e0efc1736930a6e4917 (patch) | |
tree | d5aa257fdc1fd2c700c76684716b376fcae50d5d /src/layout | |
parent | e3485c011873797297177cf2ff49b9d791c9187e (diff) | |
download | chawan-2fd8b25755d44534ef402e0efc1736930a6e4917.tar.gz |
layout/engine: add table row group/caption to anon table
bugfix, bugfix...
Diffstat (limited to 'src/layout')
-rw-r--r-- | src/layout/engine.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim index 6a6d9943..199632fb 100644 --- a/src/layout/engine.nim +++ b/src/layout/engine.nim @@ -1853,6 +1853,7 @@ proc generateFromElem(ctx: var InnerBlockContext, styledNode: StyledNode) = #TODO make this an inline-table if we're in an inline context wrappervals{"display"} = DISPLAY_TABLE ctx.anonTable = getTableBox(wrappervals) + ctx.anonTable.children.add(childbox) of DISPLAY_TABLE_CELL: ctx.bflush() let childbox = styledNode.generateTableCellBox(ctx.viewport, ctx) @@ -1880,6 +1881,7 @@ proc generateFromElem(ctx: var InnerBlockContext, styledNode: StyledNode) = #TODO make this an inline-table if we're in an inline context wrappervals{"display"} = DISPLAY_TABLE ctx.anonTable = getTableBox(wrappervals) + ctx.anonTable.children.add(childbox) of DISPLAY_TABLE_COLUMN: discard #TODO of DISPLAY_TABLE_COLUMN_GROUP: |