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.
21 lines
1.5 KiB
Plaintext
21 lines
1.5 KiB
Plaintext
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (1,1) content-size 798x83 [BFC] children: not-inline
|
|
BlockContainer <body> at (10,10) content-size 780x0 children: not-inline
|
|
BlockContainer <div.outer> at (11,11) content-size 102.484375x72 floating [BFC] children: not-inline
|
|
BlockContainer <(anonymous)> at (11,11) content-size 102.484375x20 children: inline
|
|
frag 0 from BlockContainer start: 0, length: 0, rect: [12,12 102.484375x18] baseline: 14.796875
|
|
BlockContainer <div.first> at (12,12) content-size 102.484375x18 inline-block [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 11, rect: [12,12 100.484375x18] baseline: 13.796875
|
|
"programming"
|
|
TextNode <#text>
|
|
BlockContainer <div.second> at (12,32) content-size 50x50 children: not-inline
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x85]
|
|
PaintableWithLines (BlockContainer<BODY>) [9,9 782x2] overflow: [10,10 104.484375x74]
|
|
PaintableWithLines (BlockContainer<DIV>.outer) [10,10 104.484375x74] overflow: [11,11 103.484375x72]
|
|
PaintableWithLines (BlockContainer(anonymous)) [11,11 102.484375x20] overflow: [11,11 103.484375x20]
|
|
PaintableWithLines (BlockContainer<DIV>.first) [11,11 104.484375x20]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.second) [11,31 52x52]
|