mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +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.
78 lines
4.2 KiB
Plaintext
78 lines
4.2 KiB
Plaintext
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x118 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x102 children: not-inline
|
|
BlockContainer <div> at (9,9) content-size 100x100 children: inline
|
|
frag 0 from TextNode start: 1, length: 3, rect: [9,9 27.15625x18] baseline: 13.796875
|
|
"foo"
|
|
frag 1 from TextNode start: 4, length: 1, rect: [36.15625,9 9x18] baseline: 13.796875
|
|
" "
|
|
frag 2 from TextNode start: 5, length: 3, rect: [45.15625,9 27.640625x18] baseline: 13.796875
|
|
"bar"
|
|
frag 3 from TextNode start: 8, length: 1, rect: [72.796875,9 9x18] baseline: 13.796875
|
|
" "
|
|
frag 4 from TextNode start: 9, length: 3, rect: [81.796875,9 27.203125x18] baseline: 13.796875
|
|
"baz"
|
|
frag 5 from TextNode start: 13, length: 3, rect: [9,27 27.15625x18] baseline: 13.796875
|
|
"foo"
|
|
frag 6 from TextNode start: 16, length: 1, rect: [36.15625,27 8x18] baseline: 13.796875
|
|
" "
|
|
frag 7 from TextNode start: 17, length: 3, rect: [44.15625,27 27.640625x18] baseline: 13.796875
|
|
"bar"
|
|
frag 8 from TextNode start: 20, length: 1, rect: [71.796875,27 8x18] baseline: 13.796875
|
|
" "
|
|
frag 9 from TextNode start: 21, length: 3, rect: [79.796875,27 27.203125x18] baseline: 13.796875
|
|
"baz"
|
|
frag 10 from TextNode start: 1, length: 3, rect: [9,45 27.15625x18] baseline: 13.796875
|
|
"foo"
|
|
frag 11 from TextNode start: 4, length: 1, rect: [36.15625,45 9x18] baseline: 13.796875
|
|
" "
|
|
frag 12 from TextNode start: 5, length: 3, rect: [45.15625,45 27.640625x18] baseline: 13.796875
|
|
"bar"
|
|
frag 13 from TextNode start: 8, length: 1, rect: [72.796875,45 9x18] baseline: 13.796875
|
|
" "
|
|
frag 14 from TextNode start: 9, length: 3, rect: [81.796875,45 27.203125x18] baseline: 13.796875
|
|
"baz"
|
|
frag 15 from TextNode start: 13, length: 3, rect: [9,63 27.15625x18] baseline: 13.796875
|
|
"foo"
|
|
frag 16 from TextNode start: 16, length: 1, rect: [36.15625,63 9x18] baseline: 13.796875
|
|
" "
|
|
frag 17 from TextNode start: 17, length: 3, rect: [45.15625,63 27.640625x18] baseline: 13.796875
|
|
"bar"
|
|
frag 18 from TextNode start: 20, length: 1, rect: [72.796875,63 9x18] baseline: 13.796875
|
|
" "
|
|
frag 19 from TextNode start: 21, length: 3, rect: [81.796875,63 27.203125x18] baseline: 13.796875
|
|
"baz"
|
|
frag 20 from TextNode start: 25, length: 3, rect: [9,81 27.15625x18] baseline: 13.796875
|
|
"foo"
|
|
frag 21 from TextNode start: 28, length: 1, rect: [36.15625,81 8x18] baseline: 13.796875
|
|
" "
|
|
frag 22 from TextNode start: 29, length: 3, rect: [44.15625,81 27.640625x18] baseline: 13.796875
|
|
"bar"
|
|
frag 23 from TextNode start: 32, length: 1, rect: [71.796875,81 8x18] baseline: 13.796875
|
|
" "
|
|
frag 24 from TextNode start: 33, length: 3, rect: [79.796875,81 27.203125x18] baseline: 13.796875
|
|
"baz"
|
|
frag 25 from TextNode start: 1, length: 3, rect: [9,99 27.15625x18] baseline: 13.796875
|
|
"foo"
|
|
frag 26 from TextNode start: 4, length: 1, rect: [36.15625,99 8x18] baseline: 13.796875
|
|
" "
|
|
frag 27 from TextNode start: 5, length: 3, rect: [44.15625,99 27.640625x18] baseline: 13.796875
|
|
"bar"
|
|
frag 28 from TextNode start: 8, length: 1, rect: [71.796875,99 8x18] baseline: 13.796875
|
|
" "
|
|
frag 29 from TextNode start: 9, length: 3, rect: [79.796875,99 27.203125x18] baseline: 13.796875
|
|
"baz"
|
|
TextNode <#text>
|
|
BreakNode <br>
|
|
TextNode <#text>
|
|
BreakNode <br>
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x118]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x102] overflow: [8,8 784x109]
|
|
PaintableWithLines (BlockContainer<DIV>) [8,8 102x102] overflow: [9,9 100x108]
|
|
TextPaintable (TextNode<#text>)
|
|
TextPaintable (TextNode<#text>)
|
|
TextPaintable (TextNode<#text>)
|