mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05: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.
29 lines
1.8 KiB
Plaintext
29 lines
1.8 KiB
Plaintext
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x36 children: not-inline
|
|
Box <div.container> at (8,8) content-size 784x36 [GFC] children: not-inline
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div.item-left> at (8,8) content-size 100x36 [BFC] children: not-inline
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div.item-right> at (108.03125,8) content-size 683.96875x36 [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 77, rect: [108.03125,8 625.953125x18] baseline: 13.796875
|
|
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut iaculis venenatis"
|
|
frag 1 from TextNode start: 78, length: 39, rect: [108.03125,26 304.0625x18] baseline: 13.796875
|
|
"purus, eget blandit velit venenatis at."
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,44) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x36]
|
|
PaintableBox (Box<DIV>.container) [8,8 784x36]
|
|
PaintableWithLines (BlockContainer<DIV>.item-left) [8,8 100x36]
|
|
PaintableWithLines (BlockContainer<DIV>.item-right) [108.03125,8 683.96875x36]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,44 784x0]
|