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.
37 lines
2.4 KiB
Plaintext
37 lines
2.4 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 784x200 children: inline
|
|
frag 0 from BlockContainer start: 0, length: 0, rect: [22,19 48.6875x178] baseline: 82.796875
|
|
TextNode <#text>
|
|
BlockContainer <button.button.border-black> at (22,19) content-size 48.6875x178 inline-block [BFC] children: not-inline
|
|
BlockContainer <(anonymous)> at (22,19) content-size 48.6875x178 flex-container(column) [FFC] children: not-inline
|
|
BlockContainer <(anonymous)> at (22,29) content-size 48.6875x158 flex-item [BFC] children: not-inline
|
|
BlockContainer <(anonymous)> at (22,29) content-size 48.6875x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div.border-black> at (32,39) content-size 28.6875x18 children: inline
|
|
frag 0 from TextNode start: 1, length: 3, rect: [32,39 28.6875x18] baseline: 13.796875
|
|
"one"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (22,67) content-size 48.6875x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div.border-black> at (32,77) content-size 28.6875x100 children: inline
|
|
frag 0 from TextNode start: 1, length: 3, rect: [32.125,77 28.4375x18] baseline: 13.796875
|
|
"two"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (22,187) content-size 48.6875x0 children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x200]
|
|
PaintableWithLines (BlockContainer<BUTTON>.button.border-black) [8,8 76.6875x200]
|
|
PaintableWithLines (BlockContainer(anonymous)) [22,19 48.6875x178]
|
|
PaintableWithLines (BlockContainer(anonymous)) [22,29 48.6875x158]
|
|
PaintableWithLines (BlockContainer(anonymous)) [22,29 48.6875x0]
|
|
PaintableWithLines (BlockContainer<DIV>.border-black) [22,29 48.6875x38]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [22,67 48.6875x0]
|
|
PaintableWithLines (BlockContainer<DIV>.border-black) [22,67 48.6875x120]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [22,187 48.6875x0]
|