mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
LibWeb: Report border box width for tables in a block
For the containing block, table borders are opaque and have to be accounted when computing the table width since they use available space.
This commit is contained in:
parent
2c4908094c
commit
8b34af816e
19 changed files with 154 additions and 26 deletions
46
Tests/LibWeb/Layout/input/table/nested-table-box-width.html
Normal file
46
Tests/LibWeb/Layout/input/table/nested-table-box-width.html
Normal file
|
@ -0,0 +1,46 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Rowspan interaction with nested tables</title>
|
||||
|
||||
<style>
|
||||
table {
|
||||
border: 5px solid black;
|
||||
border-spacing: 2px;
|
||||
}
|
||||
|
||||
td {
|
||||
border: 5px solid blue;
|
||||
padding: 5px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>X</td>
|
||||
<td rowspan="2">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>B</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Y</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue