Forum Bugs

Flex item 100% width in a flex container in a td gets table width instead of td width

srlbrooks
Greetings,

Thank for your great work so far on supporting flex display model.

We've found a case where flex items don't expand as expected.

Attached is a simple test case showing the issue. When a flex container is within "display:table-cell;" node and flex items are set to 100% width (either through flex-basis or width). The 100% is treated as the width of the parent table, not the expected td container.

This results in the table overflowing the page in the Prince render (tested using currently available 'latest' on macosx prince-20180328-macosx.tar.gz).

The html renders as expected in current Chrome and Firefox.

Best Regards,
Stephen
  1. prince-flex-tablecell-testcase.html1.0 kB
markbrown
Thanks for the report. We'll look into this issue.
markbrown
This is now working correctly in the latest build, which you can download here.