1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:47:36 +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,9 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (1,1) content-size 798x61 children: not-inline
BlockContainer <body> at (10,10) content-size 780x19.46875 children: not-inline
BlockContainer <div.thumbnail> at (11,11) content-size 50x50 floating children: not-inline
BlockContainer <div.title> at (91,11) content-size 698x17.46875 children: inline
line 0 width: 125.125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
frag 0 from TextNode start: 0, length: 14, rect: [91,11 125.125x17.46875]
"Chrono Trigger"
TextNode <#text>