mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37: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.
24 lines
1.3 KiB
Plaintext
24 lines
1.3 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 (100,8) content-size 200x200 children: not-inline
|
|
BlockContainer <div.row> at (50,8) content-size 250x200 children: inline
|
|
BlockContainer <div.item> at (50,8) content-size 125x18 floating [BFC] children: inline
|
|
frag 0 from TextNode start: 1, length: 1, rect: [50,8 9.34375x18] baseline: 13.796875
|
|
"a"
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
BlockContainer <div.item> at (175,8) content-size 125x18 floating [BFC] children: inline
|
|
frag 0 from TextNode start: 1, length: 1, rect: [175,8 9.46875x18] baseline: 13.796875
|
|
"b"
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<BODY>) [100,8 200x200] overflow: [50,8 250x200]
|
|
PaintableWithLines (BlockContainer<DIV>.row) [50,8 250x200]
|
|
PaintableWithLines (BlockContainer<DIV>.item) [50,8 125x18]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.item) [175,8 125x18]
|
|
TextPaintable (TextNode<#text>)
|