[csswg-drafts] [css-tables] percent width cells behave differently in nested tables

davidsgrogan has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-tables] percent width cells behave differently in nested tables ==
In the following, all engines agree that yellow and blue rectangles are in proportion to their contents' intrinsic widths and yellow's percent is ignored. But nothing in [css-tables-3](https://drafts.csswg.org/css-tables-3/#width-distribution-algorithm) (that I could find!) mentions this exception -- it would have yellow be 300 * (2000 / (2000 + 40)) px wide.
```
<table id="outerTable" style="width: 300px" cellspacing="0" cellpadding="0">
    <td style="background:red;">
        <table cellspacing="0" cellpadding="0">
            <td style="width:1%; background:yellow;" data-expected-width="100">
                <div style="width:20px; height:150px;"></div>
            </td>
        </table>
    </td>
    <td style="background:lightblue;" data-expected-width="200">
        <div style="width:40px; height:150px;"></div>
    </td>
</table>
```

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3336 using your GitHub account

Received on Tuesday, 20 November 2018 01:48:35 UTC