1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:57:45 +00:00

LibWeb: Set table wrapper width from the table box

Fixes #20385 and some Wikipedia pages, for example:
https://en.wikipedia.org/wiki/2022%E2%80%9323_UEFA_Champions_League_knockout_phase
This commit is contained in:
Andi Gallo 2023-08-16 08:18:07 +00:00 committed by Alexander Kalenik
parent f6dd512b65
commit 65854c3411
4 changed files with 77 additions and 2 deletions

View file

@ -0,0 +1,23 @@
<style>
.grid {
display: grid;
}
.left {
float: left;
}
.middle {
float: left;
width: 20%;
}
.right {
float: left;
}
table,
td {
border: 1px solid black;
}
</style><div class="grid"><div><div class="left">1</div><table class="middle"><tr><td>2</td><td>3</td></tr></table><div class="right">4</div></div></div>