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

LibWeb: Collapse margin-left with space used by left-side floats

We had an issue where boxes with margin-left were shifted right by
left-side floats twice instead of just once.
This commit is contained in:
Andreas Kling 2023-03-10 22:06:20 +01:00
parent 1cf5737e9e
commit f97754942c
3 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,16 @@
<!DOCTYPE html><html><head><style>
* {
border: 1px solid black;
font-family: 'SerenitySans';
}
.thumbnail {
float: left;
width: 50px;
height: 50px;
background-color: pink;
}
.title {
margin-left: 80px;
background-color: orange;
}
</style></head><body><div class="thumbnail"></div><div class="title">Chrono Trigger