mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +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.
29 lines
2 KiB
Text
29 lines
2 KiB
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x124 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x108 children: not-inline
|
|
BlockContainer <div.wrapper> at (8,8) content-size 270x108 children: not-inline
|
|
Box <div.constrained> at (8,8) content-size 270x108 [GFC] children: not-inline
|
|
BlockContainer <(anonymous)> at (8,8) content-size 270x108 [BFC] children: inline
|
|
frag 0 from TextNode start: 1, length: 35, rect: [8,8 261.0625x18] baseline: 13.796875
|
|
"hello hello hello hello hello hello"
|
|
frag 1 from TextNode start: 37, length: 35, rect: [8,26 261.0625x18] baseline: 13.796875
|
|
"hello hello hello hello hello hello"
|
|
frag 2 from TextNode start: 73, length: 35, rect: [8,44 261.0625x18] baseline: 13.796875
|
|
"hello hello hello hello hello hello"
|
|
frag 3 from TextNode start: 109, length: 35, rect: [8,62 261.0625x18] baseline: 13.796875
|
|
"hello hello hello hello hello hello"
|
|
frag 4 from TextNode start: 145, length: 35, rect: [8,80 261.0625x18] baseline: 13.796875
|
|
"hello hello hello hello hello hello"
|
|
frag 5 from TextNode start: 181, length: 11, rect: [8,98 81.6875x18] baseline: 13.796875
|
|
"hello hello"
|
|
TextNode <#text>
|
|
BlockContainer <div> at (8,116) content-size 270x0 [BFC] children: not-inline
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x124]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x108]
|
|
PaintableWithLines (BlockContainer<DIV>.wrapper) [8,8 270x108]
|
|
PaintableBox (Box<DIV>.constrained) [8,8 270x108]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,8 270x108]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>) [8,116 270x0]
|