mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
LibWeb: Skip separate height computation for tables
With multi-line text cells, we don't reliably know the height would stay the same as the one set by the independent format context run. In such situations, we can end up with a table box which is sized inconsistently with the grid boxes of the table due to differences in line breaks.
This commit is contained in:
parent
0cea1a3baf
commit
f154446a9f
3 changed files with 48 additions and 1 deletions
14
Tests/LibWeb/Layout/input/table/multi-line-cell.html
Normal file
14
Tests/LibWeb/Layout/input/table/multi-line-cell.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<style>
|
||||
table {
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
td {
|
||||
border: 1px solid blue;
|
||||
}
|
||||
</style>
|
||||
|
||||
<table style="width: 10px;">
|
||||
<tr><td>*</td></tr>
|
||||
<tr><td>********* ***** **</td></tr>
|
||||
</table>
|
Loading…
Add table
Add a link
Reference in a new issue