mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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.
40 lines
2.4 KiB
Text
40 lines
2.4 KiB
Text
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 780x120 children: not-inline
|
|
BlockContainer <(anonymous)> at (8,8) content-size 780x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div#top> at (8,8) content-size 780x100 [BFC] children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div#top-left.box> at (8,8) content-size 300x100 floating [BFC] children: not-inline
|
|
TextNode <#text>
|
|
BlockContainer <div#top-right.box> at (488,8) content-size 300x100 floating [BFC] children: not-inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,108) content-size 780x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div#bottom> at (9,109) content-size 778x18 children: not-inline
|
|
BlockContainer <(anonymous)> at (9,109) content-size 778x0 children: inline
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
BlockContainer <div#text> at (9,109) content-size 778x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 6, rect: [370.59375,109 54.796875x18] baseline: 13.796875
|
|
"foobar"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (9,127) content-size 778x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,128) content-size 780x0 children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 780x120]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,8 780x0]
|
|
PaintableWithLines (BlockContainer<DIV>#top) [8,8 780x100]
|
|
PaintableWithLines (BlockContainer<DIV>#top-left.box) [8,8 300x100]
|
|
PaintableWithLines (BlockContainer<DIV>#top-right.box) [488,8 300x100]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,108 780x0]
|
|
PaintableWithLines (BlockContainer<DIV>#bottom) [8,108 780x20]
|
|
PaintableWithLines (BlockContainer(anonymous)) [9,109 778x0]
|
|
PaintableWithLines (BlockContainer<DIV>#text) [9,109 778x18]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [9,127 778x0]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,128 780x0]
|