1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00
ladybird/Tests/LibWeb/Layout/expected/css-font-size-math.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

38 lines
1.7 KiB
Text

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 784x83 children: inline
InlineNode <span>
frag 0 from TextNode start: 0, length: 1, rect: [8,26 39.09375x59] baseline: 44.828125
"H"
TextNode <#text>
InlineNode <span>
frag 0 from TextNode start: 0, length: 1, rect: [47.09375,39 19.78125x42] baseline: 31.875
"e"
TextNode <#text>
InlineNode <span>
frag 0 from TextNode start: 0, length: 1, rect: [66.875,48 6.8125x30] baseline: 22.71875
"l"
TextNode <#text>
InlineNode <span>
frag 0 from TextNode start: 0, length: 1, rect: [73.6875,55 4.84375x21] baseline: 15.984375
"l"
TextNode <#text>
InlineNode <span>
frag 0 from TextNode start: 0, length: 1, rect: [78.53125,59 8.40625x15] baseline: 11.390625
"o"
TextNode <#text>
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x83]
PaintableWithLines (InlineNode<SPAN>)
TextPaintable (TextNode<#text>)
PaintableWithLines (InlineNode<SPAN>)
TextPaintable (TextNode<#text>)
PaintableWithLines (InlineNode<SPAN>)
TextPaintable (TextNode<#text>)
PaintableWithLines (InlineNode<SPAN>)
TextPaintable (TextNode<#text>)
PaintableWithLines (InlineNode<SPAN>)
TextPaintable (TextNode<#text>)