mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +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.
25 lines
1.7 KiB
Text
25 lines
1.7 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 784x0 children: not-inline
|
|
Box <div.display_flex> at (8,8) content-size 23.609375x18 floating flex-container(row) [FFC] children: not-inline
|
|
BlockContainer <div> at (8,8) content-size 23.609375x18 flex-item [BFC] children: not-inline
|
|
BlockContainer <div> at (8,8) content-size 23.609375x18 floating [BFC] children: not-inline
|
|
BlockContainer <span> at (8,8) content-size 14.265625x18 floating [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [8,8 14.265625x18] baseline: 13.796875
|
|
"A"
|
|
TextNode <#text>
|
|
BlockContainer <span> at (22.265625,8) content-size 9.34375x18 floating [BFC] children: inline
|
|
frag 0 from TextNode start: 0, length: 1, rect: [22.265625,8 9.34375x18] baseline: 13.796875
|
|
"B"
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x0] overflow: [8,8 23.609375x18]
|
|
PaintableBox (Box<DIV>.display_flex) [8,8 23.609375x18]
|
|
PaintableWithLines (BlockContainer<DIV>) [8,8 23.609375x18]
|
|
PaintableWithLines (BlockContainer<DIV>) [8,8 23.609375x18]
|
|
PaintableWithLines (BlockContainer<SPAN>) [8,8 14.265625x18]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<SPAN>) [22.265625,8 9.34375x18]
|
|
TextPaintable (TextNode<#text>)
|