Weasyprint: Table using colgroup and col for widths

Created on 1 Nov 2016  路  3Comments  路  Source: Kozea/WeasyPrint

Either a bug or something I am doing wrong.. I'm creating a 100% width table with fixed width columns, and the last column needs to take up the rest of the table width.

I end up with columns of the same size that run off the right side of the page.

<style>
table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
}
</style>
<table style="width: 100%">
    <colgroup>
        <col style="width: 200px">
        <col style="width: 100px">
        <col style="width: 50px">
        <col>
    </colgroup>
    <tbody>
        <tr>
            <td>1</td>
            <td>2</td>
            <td>3</td>
            <td>4</td>
        </tr>
        <tr>
            <td>5</td>
            <td>6</td>
            <td>7</td>
            <td>8</td>
        </tr>
    </tbody>
</table>

report

bug

All 3 comments

Either a bug or something I am doing wrong.

It was a bug and it's now fixed and tested. Thank you for this report!

@liZe Thanks! How close is v0.32 to release?

Probably in a week or two!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

antuaneacion picture antuaneacion  路  3Comments

thejasechen picture thejasechen  路  3Comments

bjornasm picture bjornasm  路  3Comments

assuntaw picture assuntaw  路  3Comments

zopyx picture zopyx  路  5Comments