mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +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 800x1060 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,70) content-size 784x920 children: not-inline
|
|
BlockContainer <p.min-inline-test> at (8,70) content-size 784x200 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,340) content-size 784x80 children: inline
|
|
TextNode <#text>
|
|
BreakNode <br>
|
|
TextNode <#text>
|
|
BlockContainer <p.max-inline-test> at (8,490) content-size 100x80 children: inline
|
|
frag 0 from TextNode start: 0, length: 2, rect: [8,490 85.875x80] baseline: 60.984375
|
|
"KK"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,640) content-size 784x80 children: inline
|
|
TextNode <#text>
|
|
BreakNode <br>
|
|
TextNode <#text>
|
|
BlockContainer <p.inline-size-test> at (8,790) content-size 400x200 children: inline
|
|
frag 0 from TextNode start: 0, length: 2, rect: [8,790 85.875x80] baseline: 60.984375
|
|
"KK"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,1060) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 800x1060]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x1060]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,70 784x920]
|
|
PaintableWithLines (BlockContainer<P>.min-inline-test) [8,70 784x200]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,340 784x80]
|
|
PaintableWithLines (BlockContainer<P>.max-inline-test) [8,490 100x80]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,640 784x80]
|
|
PaintableWithLines (BlockContainer<P>.inline-size-test) [8,790 400x200]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,1060 784x0]
|