mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +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.
30 lines
1.7 KiB
Text
30 lines
1.7 KiB
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x172 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x156 children: not-inline
|
|
BlockContainer <(anonymous)> at (8,8) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
Box <div.wrapper> at (8,8) content-size 784x156 [GFC] children: not-inline
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div.box.a> at (28,38) content-size 60x28 [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [28,38 21.40625x28] baseline: 21.1875
|
|
"A"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div.box.b> at (28,116) content-size 60x28 [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [28,116 14.015625x28] baseline: 21.1875
|
|
"B"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x172]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x156]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,8 784x0]
|
|
PaintableBox (Box<DIV>.wrapper) [8,8 784x156]
|
|
PaintableWithLines (BlockContainer<DIV>.box.a) [8,18 100x68]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.box.b) [8,96 100x68]
|
|
TextPaintable (TextNode<#text>)
|