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

LibWeb: Don't allow resolved width of abspos elements to become negative

We have to clamp the resulting width to 0 when solving for it.
This commit is contained in:
Andreas Kling 2023-03-25 16:00:54 +01:00
parent 8f311c61af
commit 3f6f3966b9
3 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,11 @@
<!DOCTYPE html><html><head><style>
.outer {
position: absolute;
}
.inner {
position: absolute;
left: 0;
right: 0;
border: 1px solid black;
}
</style></head><body class="outer"><div class="inner">