mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
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.
39 lines
2.0 KiB
Plaintext
39 lines
2.0 KiB
Plaintext
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x1780 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,70) content-size 784x1640 children: not-inline
|
|
BlockContainer <p.min-block-test> at (8,70) content-size 784x700 children: inline
|
|
frag 0 from TextNode start: 0, length: 2, rect: [8,70 85.875x80] baseline: 60.984375
|
|
"KK"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,840) content-size 784x80 children: inline
|
|
TextNode <#text>
|
|
BreakNode <br>
|
|
TextNode <#text>
|
|
BlockContainer <p.max-block-test> at (8,990) content-size 200x100 children: inline
|
|
frag 0 from TextNode start: 0, length: 2, rect: [8,990 85.875x80] baseline: 60.984375
|
|
"KK"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,1160) content-size 784x80 children: inline
|
|
TextNode <#text>
|
|
BreakNode <br>
|
|
TextNode <#text>
|
|
BlockContainer <p.block-size-test> at (8,1310) content-size 200x400 children: inline
|
|
frag 0 from TextNode start: 0, length: 2, rect: [8,1310 85.875x80] baseline: 60.984375
|
|
"KK"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,1780) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 800x1780]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x1780]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,70 784x1640]
|
|
PaintableWithLines (BlockContainer<P>.min-block-test) [8,70 784x700]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,840 784x80]
|
|
PaintableWithLines (BlockContainer<P>.max-block-test) [8,990 200x100]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,1160 784x80]
|
|
PaintableWithLines (BlockContainer<P>.block-size-test) [8,1310 200x400]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,1780 784x0]
|