mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +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.
23 lines
1.3 KiB
Plaintext
23 lines
1.3 KiB
Plaintext
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (1,1) content-size 798x58 [BFC] children: not-inline
|
|
BlockContainer <body> at (10,10) content-size 780x40 children: not-inline
|
|
BlockContainer <div.box> at (11,11) content-size 138.28125x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 18, rect: [11,11 138.28125x18] baseline: 13.796875
|
|
"Well hello friends"
|
|
TextNode <#text>
|
|
BlockContainer <div.box2> at (11,31) content-size 138.28125x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 18, rect: [11,31 138.28125x18] baseline: 13.796875
|
|
"Well hello friends"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (10,50) content-size 780x0 children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x60]
|
|
PaintableWithLines (BlockContainer<BODY>) [9,9 782x42]
|
|
PaintableWithLines (BlockContainer<DIV>.box) [10,10 140.28125x20]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.box2) [10,30 140.28125x20]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [10,50 780x0]
|