mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:08:12 +00:00

According to CSS Inline Layout Module Level 3 § 2.2 Step 1. atomic inlines should be layed out in a line box based on their margin box. However, up until this patch we were unconditionally considering only the border box during line box height calculation. This made us essentially drop all vertical margins for atomic inlines.
12 lines
750 B
Text
12 lines
750 B
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x194.46875 children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x178.46875 children: inline
|
|
line 0 width: 210.828125, height: 178.46875, bottom: 178.46875, baseline: 175
|
|
frag 0 from TextNode start: 0, length: 6, rect: [8,169 43.125x17.46875]
|
|
"Well, "
|
|
frag 1 from BlockContainer start: 0, length: 0, rect: [51,58 100x100]
|
|
frag 2 from TextNode start: 0, length: 9, rect: [151,169 67.703125x17.46875]
|
|
" friends."
|
|
TextNode <#text>
|
|
BlockContainer <div#inline-box> at (51,58) content-size 100x100 inline-block children: not-inline
|
|
TextNode <#text>
|