mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +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.
53 lines
3.0 KiB
Plaintext
53 lines
3.0 KiB
Plaintext
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x76 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x60 children: not-inline
|
|
BlockContainer <div> at (8,8) content-size 784x15 children: inline
|
|
frag 0 from BlockContainer start: 0, length: 0, rect: [8,19 48x0] baseline: 0
|
|
frag 1 from TextNode start: 0, length: 2, rect: [56,8 15.59375x15] baseline: 11.390625
|
|
" A"
|
|
BlockContainer <span#s1> at (8,19) content-size 48x0 inline-block [BFC] children: not-inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,23) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div> at (8,23) content-size 784x15 children: inline
|
|
frag 0 from BlockContainer start: 0, length: 0, rect: [8,34 56x0] baseline: 0
|
|
frag 1 from TextNode start: 0, length: 2, rect: [64,23 59.59375x15] baseline: 11.390625
|
|
" A"
|
|
BlockContainer <span#s2> at (8,34) content-size 56x0 inline-block [BFC] children: not-inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,38) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div> at (8,38) content-size 784x15 children: inline
|
|
frag 0 from BlockContainer start: 0, length: 0, rect: [8,49 58.40625x0] baseline: 0
|
|
frag 1 from TextNode start: 0, length: 2, rect: [66.40625,38 57.1875x15] baseline: 11.390625
|
|
" A"
|
|
BlockContainer <span#s3> at (8,49) content-size 58.40625x0 inline-block [BFC] children: not-inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,53) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div> at (8,53) content-size 784x15 children: inline
|
|
frag 0 from TextNode start: 0, length: 9, rect: [8,53 63.59375x15] baseline: 11.390625
|
|
" A"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,68) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x76]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x60]
|
|
PaintableWithLines (BlockContainer<DIV>) [8,8 784x15]
|
|
PaintableWithLines (BlockContainer<SPAN>#s1) [8,19 48x0]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,23 784x0]
|
|
PaintableWithLines (BlockContainer<DIV>) [8,23 784x15]
|
|
PaintableWithLines (BlockContainer<SPAN>#s2) [8,34 56x0]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,38 784x0]
|
|
PaintableWithLines (BlockContainer<DIV>) [8,38 784x15]
|
|
PaintableWithLines (BlockContainer<SPAN>#s3) [8,49 58.40625x0]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,53 784x0]
|
|
PaintableWithLines (BlockContainer<DIV>) [8,53 784x15]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,68 784x0]
|