mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +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.
15 lines
899 B
Text
15 lines
899 B
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x34 [BFC] children: not-inline
|
|
Box <body> at (8,8) content-size 784x18 [GFC] children: not-inline
|
|
BlockContainer <div> at (8,8) content-size 151.359375x18 [BFC] children: not-inline
|
|
BlockContainer <div.item> at (159.359375,8) content-size 632.59375x18 [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 3, rect: [159.359375,8 27.15625x18] baseline: 13.796875
|
|
"foo"
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x34]
|
|
PaintableBox (Box<BODY>) [8,8 784x18]
|
|
PaintableWithLines (BlockContainer<DIV>) [8,8 151.359375x18]
|
|
PaintableWithLines (BlockContainer<DIV>.item) [159.359375,8 632.59375x18]
|
|
TextPaintable (TextNode<#text>)
|