LibWeb: Assign static position for abspos boxes nested into TFC

TFC is not aware of how to correctly calculate a static position for
abspos boxes, but assigning (0, 0) is better than crashing during abspos
item layout.

Fixes https://github.com/LadybirdBrowser/ladybird/issues/1382
This commit is contained in:
Aliaksandr Kalenik 2024-09-13 22:42:43 +02:00 committed by Andreas Kling
commit 9621439db0
Notes: github-actions[bot] 2024-09-14 13:04:58 +00:00
5 changed files with 70 additions and 1 deletions

View file

@ -0,0 +1,21 @@
<!DOCTYPE html><style>
table {
width: 100%;
}
th, td {
border: 1px solid #ccc;
padding: 8px;
text-align: left;
}
tr::before {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 10px;
background-color: red;
}
</style><table><thead><tr></tr></thead></table>