Files
ladybird/Tests/LibWeb/Layout/expected/block-and-inline/clear-both-from-inline-formatting-context.txt
Jelle Raaijmakers 71665fa504 LibWeb: Scale font size by 1.15 for line-height: normal
Browsers such as Chrome and Firefox apply an arbitrary scale to the
current font size if `normal` is used for `line-height`. Firefox uses
1.2 while Chrome uses 1.15. Let's go with the latter for now, it's
relatively easy to change if we ever want to go back on that decision.

This also requires updating the expectations for a lot of layout tests.
The upside of this is that it's a bit easier to compare our layout
results to other browsers', especially Chrome.
2025-05-05 13:15:56 +02:00

32 lines
1.7 KiB
Plaintext

Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x0 children: not-inline
BlockContainer <div> at (8,8) content-size 784x0 children: inline
TextNode <#text>
BlockContainer <h1.left> at (8,29.4375) content-size 28.53125x37 floating [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [8,29.4375 28.53125x37] baseline: 28.09375
"A"
TextNode <#text>
TextNode <#text>
BlockContainer <h1.right> at (773.3125,29.4375) content-size 18.6875x37 floating [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [773.3125,29.4375 18.6875x37] baseline: 28.09375
"B"
TextNode <#text>
TextNode <#text>
BlockContainer <div.c> at (8,157.875) content-size 11.5625x18 floating [BFC] children: inline
frag 0 from TextNode start: 0, length: 1, rect: [8,157.875 11.5625x18] baseline: 13.796875
"X"
TextNode <#text>
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x0]
PaintableWithLines (BlockContainer<DIV>) [8,8 784x0]
PaintableWithLines (BlockContainer<H1>.left) [8,29.4375 28.53125x37]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<H1>.right) [773.3125,29.4375 18.6875x37]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.c) [8,157.875 11.5625x18]
TextPaintable (TextNode<#text>)