mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00: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.
19 lines
1.2 KiB
Text
19 lines
1.2 KiB
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (1,1) content-size 798x0 [BFC] children: not-inline
|
|
BlockContainer <body> at (10,10) content-size 102x58 positioned [BFC] children: not-inline
|
|
BlockContainer <div#container> at (11,11) content-size 100x56 children: not-inline
|
|
BlockContainer <div#child> at (72,12) content-size 50x54 children: inline
|
|
frag 0 from TextNode start: 0, length: 4, rect: [72,12 28.40625x18] baseline: 13.796875
|
|
"well"
|
|
frag 1 from TextNode start: 5, length: 5, rect: [72,30 36.84375x18] baseline: 13.796875
|
|
"hello"
|
|
frag 2 from TextNode start: 11, length: 7, rect: [72,48 55.359375x18] baseline: 13.796875
|
|
"friends"
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x2]
|
|
PaintableWithLines (BlockContainer<BODY>) [9,9 104x60] overflow: [10,10 173x58]
|
|
PaintableWithLines (BlockContainer<DIV>#container) [10,10 102x58] overflow: [11,11 172x56]
|
|
PaintableWithLines (BlockContainer<DIV>#child) [11,11 172x56]
|
|
TextPaintable (TextNode<#text>)
|