mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 12:18:25 +00:00
Moves paint_table_borders() call into PaintableBox::paint() to make scroll offset and clip rectangle of enclosing scrollable be applied in ::before_paint().
83 lines
2.3 KiB
HTML
83 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<head>
|
|
<style>
|
|
* {
|
|
scrollbar-width: none;
|
|
}
|
|
#scrollable-div {
|
|
width: 300px;
|
|
height: 300px;
|
|
overflow: auto;
|
|
border: 1px solid #000;
|
|
}
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
th,
|
|
td {
|
|
padding: 0;
|
|
margin: 0;
|
|
height: 50px;
|
|
box-sizing: content-box;
|
|
border: 1px solid #000;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="scrollable-div">
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td>Row 2, Cell 1</td>
|
|
<td>Row 2, Cell 2</td>
|
|
<td>Row 2, Cell 3</td>
|
|
<td>Row 2, Cell 4</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Row 3, Cell 1</td>
|
|
<td>Row 3, Cell 2</td>
|
|
<td>Row 3, Cell 3</td>
|
|
<td>Row 3, Cell 4</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Row 4, Cell 1</td>
|
|
<td>Row 4, Cell 2</td>
|
|
<td>Row 4, Cell 3</td>
|
|
<td>Row 4, Cell 4</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Row 5, Cell 1</td>
|
|
<td>Row 5, Cell 2</td>
|
|
<td>Row 5, Cell 3</td>
|
|
<td>Row 5, Cell 4</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Row 6, Cell 1</td>
|
|
<td>Row 6, Cell 2</td>
|
|
<td>Row 6, Cell 3</td>
|
|
<td>Row 6, Cell 4</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Row 7, Cell 1</td>
|
|
<td>Row 7, Cell 2</td>
|
|
<td>Row 7, Cell 3</td>
|
|
<td>Row 7, Cell 4</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Row 8, Cell 1</td>
|
|
<td>Row 8, Cell 2</td>
|
|
<td>Row 8, Cell 3</td>
|
|
<td>Row 8, Cell 4</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Row 9, Cell 1</td>
|
|
<td>Row 9, Cell 2</td>
|
|
<td>Row 9, Cell 3</td>
|
|
<td>Row 9, Cell 4</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</body>
|