ladybird/Tests/LibWeb/Layout/expected/pseudo-element-with-custom-properties-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

58 lines
3.2 KiB
Text

Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x477 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x461 children: not-inline
BlockContainer <(anonymous)> at (8,8) content-size 784x23 children: inline
frag 0 from TextNode start: 0, length: 40, rect: [8,8 391.796875x23] baseline: 17.5
"Variable set by inline style of element:"
TextNode <#text>
BreakNode <br>
TextNode <#text>
BlockContainer <div.a> at (8,31) content-size 784x100 children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [8,31 200x100] baseline: 100
BlockContainer <(anonymous)> at (8,31) content-size 200x100 inline-block [BFC] children: inline
TextNode <#text>
BlockContainer <(anonymous)> at (8,131) content-size 784x69 children: inline
frag 0 from TextNode start: 1, length: 42, rect: [8,177 441.40625x23] baseline: 17.5
"Variable set by CSS rule matching element:"
TextNode <#text>
BreakNode <br>
BreakNode <br>
TextNode <#text>
BreakNode <br>
TextNode <#text>
BlockContainer <div.b> at (8,200) content-size 784x100 children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [8,200 200x100] baseline: 100
BlockContainer <(anonymous)> at (8,200) content-size 200x100 inline-block [BFC] children: inline
TextNode <#text>
BlockContainer <(anonymous)> at (8,300) content-size 784x69 children: inline
frag 0 from TextNode start: 1, length: 49, rect: [8,346 520.765625x23] baseline: 17.5
"Variable set by CSS rule matching pseudo element:"
TextNode <#text>
BreakNode <br>
BreakNode <br>
TextNode <#text>
BreakNode <br>
TextNode <#text>
BlockContainer <div.c> at (8,369) content-size 784x100 children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [8,369 200x100] baseline: 100
BlockContainer <(anonymous)> at (8,369) content-size 200x100 inline-block [BFC] children: inline
TextNode <#text>
BlockContainer <(anonymous)> at (8,469) content-size 784x0 children: inline
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x477]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x461]
PaintableWithLines (BlockContainer(anonymous)) [8,8 784x23]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.a) [8,31 784x100]
PaintableWithLines (BlockContainer(anonymous)) [8,31 200x100]
PaintableWithLines (BlockContainer(anonymous)) [8,131 784x69]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.b) [8,200 784x100]
PaintableWithLines (BlockContainer(anonymous)) [8,200 200x100]
PaintableWithLines (BlockContainer(anonymous)) [8,300 784x69]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.c) [8,369 784x100]
PaintableWithLines (BlockContainer(anonymous)) [8,369 200x100]
PaintableWithLines (BlockContainer(anonymous)) [8,469 784x0]