mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 07:22:21 +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.
43 lines
2.5 KiB
Text
43 lines
2.5 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 784x216 children: not-inline
|
|
BlockContainer <div> at (8,8) content-size 784x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 38, rect: [8,8 312.4375x18] baseline: 13.796875
|
|
"This is inserted before the container."
|
|
TextNode <#text>
|
|
BlockContainer <div#container> at (39,57) content-size 722x118 children: not-inline
|
|
BlockContainer <p> at (39,73) content-size 722x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 34, rect: [39,73 270.59375x18] baseline: 13.796875
|
|
"This is inserted at the beginning."
|
|
TextNode <#text>
|
|
BlockContainer <p> at (39,107) content-size 722x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 29, rect: [39,107 230.59375x18] baseline: 13.796875
|
|
"This is the original content."
|
|
TextNode <#text>
|
|
BlockContainer <p> at (39,141) content-size 722x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 28, rect: [39,141 225.515625x18] baseline: 13.796875
|
|
"This is inserted at the end."
|
|
TextNode <#text>
|
|
BlockContainer <div> at (8,206) content-size 784x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 37, rect: [8,206 300.09375x18] baseline: 13.796875
|
|
"This is inserted after the container."
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,224) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x216]
|
|
PaintableWithLines (BlockContainer<DIV>) [8,8 784x18]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>#container) [28,46 744x140]
|
|
PaintableWithLines (BlockContainer<P>) [39,73 722x18]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<P>) [39,107 722x18]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<P>) [39,141 722x18]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>) [8,206 784x18]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,224 784x0]
|