mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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.
33 lines
1.8 KiB
Text
33 lines
1.8 KiB
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x516 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x500 children: not-inline
|
|
Box <div.grid> at (8,8) content-size 500x500 [GFC] children: not-inline
|
|
BlockContainer <div#a> at (8,8) content-size 100x300 [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [8,8 6.34375x18] baseline: 13.796875
|
|
"1"
|
|
TextNode <#text>
|
|
BlockContainer <div#b> at (108,8) content-size 100x100 [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [108,8 8.8125x18] baseline: 13.796875
|
|
"2"
|
|
TextNode <#text>
|
|
BlockContainer <div#c> at (108,108) content-size 100x100 [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [108,108 9.09375x18] baseline: 13.796875
|
|
"3"
|
|
TextNode <#text>
|
|
BlockContainer <div#d> at (108,208) content-size 100x100 [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [108,208 7.75x18] baseline: 13.796875
|
|
"4"
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x516]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x500]
|
|
PaintableBox (Box<DIV>.grid) [8,8 500x500]
|
|
PaintableWithLines (BlockContainer<DIV>#a) [8,8 100x300]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>#b) [108,8 100x100]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>#c) [108,108 100x100]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>#d) [108,208 100x100]
|
|
TextPaintable (TextNode<#text>)
|