mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
We were mistakenly treating inline replaced elements as if they are the start of a regular display:inline element. This meant that we collected the horizontal start and end metrics from the box model, and then added those to the inline-level item produced by InlineLevelIterator. This effectively meant that <img>, <svg> and other replaced elements got double-sized values for margin/border/padding on the left and right sides. (Which manifested as a mysterious margin around the element.)
10 KiB
10 KiB