mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +00:00
LibWeb: Resolve table border conflicts with cells
Build a mapping from coordinates to cells and use it to resolve border conflicts between adjacent cells.
This commit is contained in:
parent
d8bdf26917
commit
e30662a8a0
4 changed files with 131 additions and 2 deletions
|
@ -0,0 +1,29 @@
|
|||
<style>
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
td {
|
||||
border: 1px solid black;
|
||||
padding: 10px 20px;
|
||||
}
|
||||
|
||||
.td-thick-border {
|
||||
border: 5px solid black;
|
||||
}
|
||||
</style>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>A</td>
|
||||
<td class="td-thick-border">B</td>
|
||||
<td>C</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>D</td>
|
||||
<td>E</td>
|
||||
<td class="td-thick-border">F</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
Loading…
Add table
Add a link
Reference in a new issue