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.
36 lines
2.2 KiB
Plaintext
36 lines
2.2 KiB
Plaintext
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (1,1) content-size 798x600 [BFC] children: not-inline
|
|
BlockContainer <body> at (10,10) content-size 780x62 children: inline
|
|
frag 0 from TextNode start: 0, length: 13, rect: [10,33 103.140625x18] baseline: 13.796875
|
|
"Hello friends"
|
|
frag 1 from BlockContainer start: 0, length: 0, rect: [114.140625,11 39.234375x60] baseline: 36.796875
|
|
TextNode <#text>
|
|
BlockContainer <div.ib> at (114.140625,11) content-size 39.234375x60 inline-block [BFC] children: not-inline
|
|
BlockContainer <div> at (115.140625,12) content-size 37.234375x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 3, rect: [115.140625,12 22.546875x18] baseline: 13.796875
|
|
"1st"
|
|
TextNode <#text>
|
|
BlockContainer <div> at (115.140625,32) content-size 37.234375x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 3, rect: [115.140625,32 26.28125x18] baseline: 13.796875
|
|
"2nd"
|
|
TextNode <#text>
|
|
BlockContainer <div.float> at (115.140625,52) content-size 37.234375x18 floating [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 5, rect: [115.140625,52 37.234375x18] baseline: 13.796875
|
|
"float"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (114.140625,51) content-size 39.234375x0 children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 800x602]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x602]
|
|
PaintableWithLines (BlockContainer<BODY>) [9,9 782x64]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.ib) [113.140625,10 41.234375x62]
|
|
PaintableWithLines (BlockContainer<DIV>) [114.140625,11 39.234375x20]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>) [114.140625,31 39.234375x20]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.float) [114.140625,51 39.234375x20]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [114.140625,51 39.234375x0]
|