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

LibWeb: Account for margin and padding of justified abspos flex items

This commit is contained in:
implicitfield 2024-03-03 14:03:58 +04:00 committed by Andreas Kling
parent 3888a91c5b
commit 54d8e58a68
3 changed files with 49 additions and 2 deletions

View file

@ -0,0 +1,23 @@
<!DOCTYPE html>
<style>
.container {
position: absolute;
width: 100px;
height: 100px;
background: red;
display: flex;
justify-content: end;
}
.top-right {
position: absolute;
width: 50px;
height: 50px;
margin-left: 500px;
background: green;
border: 5px solid black;
padding: 5px;
}
</style>
<div class="container">
<div class="top-right"></div>
</div>