Files
ladybird/Tests/LibWeb/Layout/expected/block-and-inline/float-stress-2.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

28 lines
1.7 KiB
Plaintext

Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html.js> at (0,0) content-size 800x200 [BFC] children: not-inline
BlockContainer <body> at (0,0) content-size 800x50 children: not-inline
BlockContainer <div#page> at (50,50) content-size 750x0 children: not-inline
BlockContainer <div#content_box> at (50,50) content-size 400x150 floating [BFC] children: inline
BlockContainer <article.first> at (50,50) content-size 300x100 floating [BFC] children: inline
frag 0 from TextNode start: 0, length: 5, rect: [50,50 36.03125x18] baseline: 13.796875
"first"
TextNode <#text>
BlockContainer <article.second> at (50,150) content-size 200x50 floating [BFC] children: inline
frag 0 from TextNode start: 0, length: 6, rect: [50,150 54.78125x18] baseline: 13.796875
"second"
TextNode <#text>
TextNode <#text>
BlockContainer <(anonymous)> at (0,50) content-size 800x0 children: inline
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>.js) [0,0 800x200]
PaintableWithLines (BlockContainer<BODY>) [0,0 800x50] overflow: [0,0 800x200]
PaintableWithLines (BlockContainer<DIV>#page) [0,0 800x50] overflow: [0,0 800x200]
PaintableWithLines (BlockContainer<DIV>#content_box) [50,50 400x150]
PaintableWithLines (BlockContainer<ARTICLE>.first) [50,50 300x100]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<ARTICLE>.second) [50,150 200x50]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [0,50 800x0]