mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +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.
40 lines
2.5 KiB
Plaintext
40 lines
2.5 KiB
Plaintext
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 784x254 children: not-inline
|
|
BlockContainer <div> at (8,8) content-size 784x254 children: not-inline
|
|
BlockContainer <(anonymous)> at (8,8) content-size 784x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 54, rect: [344.515625,8 447.484375x18] baseline: 13.796875
|
|
"This text and the green square are both right aligned:"
|
|
TextNode <#text>
|
|
BlockContainer <div.square> at (692,26) content-size 100x100 children: not-inline
|
|
BlockContainer <(anonymous)> at (8,126) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div> at (8,126) content-size 784x136 children: not-inline
|
|
BlockContainer <(anonymous)> at (8,126) content-size 784x36 children: inline
|
|
frag 0 from TextNode start: 1, length: 87, rect: [8,126 711.4375x18] baseline: 13.796875
|
|
"This text and the green square are both left aligned despite being nested in a div with"
|
|
frag 1 from TextNode start: 89, length: 14, rect: [8,144 94.296875x18] baseline: 13.796875
|
|
"align="right":"
|
|
TextNode <#text>
|
|
BlockContainer <div.square> at (8,162) content-size 100x100 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,262) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,262) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x254]
|
|
PaintableWithLines (BlockContainer<DIV>) [8,8 784x254]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,8 784x18]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.square) [692,26 100x100]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,126 784x0]
|
|
PaintableWithLines (BlockContainer<DIV>) [8,126 784x136]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,126 784x36]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.square) [8,162 100x100]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,262 784x0]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,262 784x0]
|