mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 00:38:56 +00:00
LibWeb: Scale font size by 1.15 for line-height: normal
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.
This commit is contained in:
parent
01791c5a52
commit
71665fa504
Notes:
github-actions[bot]
2025-05-05 11:16:57 +00:00
Author: https://github.com/gmta
Commit: 71665fa504
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4551
Reviewed-by: https://github.com/rmg-x
523 changed files with 8103 additions and 8060 deletions
|
@ -1,45 +1,45 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x50 [BFC] children: not-inline
|
||||
Box <body> at (8,8) content-size 600x34 [GFC] children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x52 [BFC] children: not-inline
|
||||
Box <body> at (8,8) content-size 600x36 [GFC] children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
BlockContainer <div.title> at (8,8) content-size 198.25x17 [BFC] children: inline
|
||||
frag 0 from TextNode start: 0, length: 7, rect: [8,8 45.578125x17] baseline: 13.296875
|
||||
BlockContainer <div.title> at (8,8) content-size 198.25x18 [BFC] children: inline
|
||||
frag 0 from TextNode start: 0, length: 7, rect: [8,8 45.578125x18] baseline: 13.796875
|
||||
"title 1"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div.text> at (8,25) content-size 198.25x17 [BFC] children: inline
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [8,25 46.484375x17] baseline: 13.296875
|
||||
BlockContainer <div.text> at (8,26) content-size 198.25x18 [BFC] children: inline
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [8,26 46.484375x18] baseline: 13.796875
|
||||
"text 1"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
BlockContainer <div.title> at (206.25,8) content-size 200.71875x17 [BFC] children: inline
|
||||
frag 0 from TextNode start: 0, length: 7, rect: [206.25,8 48.046875x17] baseline: 13.296875
|
||||
BlockContainer <div.title> at (206.25,8) content-size 200.71875x18 [BFC] children: inline
|
||||
frag 0 from TextNode start: 0, length: 7, rect: [206.25,8 48.046875x18] baseline: 13.796875
|
||||
"title 2"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div.text> at (206.25,25) content-size 200.71875x17 [BFC] children: inline
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [206.25,25 48.953125x17] baseline: 13.296875
|
||||
BlockContainer <div.text> at (206.25,26) content-size 200.71875x18 [BFC] children: inline
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [206.25,26 48.953125x18] baseline: 13.796875
|
||||
"text 2"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
BlockContainer <div.title> at (406.96875,8) content-size 201x17 [BFC] children: inline
|
||||
frag 0 from TextNode start: 0, length: 7, rect: [406.96875,8 48.328125x17] baseline: 13.296875
|
||||
BlockContainer <div.title> at (406.96875,8) content-size 201x18 [BFC] children: inline
|
||||
frag 0 from TextNode start: 0, length: 7, rect: [406.96875,8 48.328125x18] baseline: 13.796875
|
||||
"title 3"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div.text> at (406.96875,25) content-size 201x17 [BFC] children: inline
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [406.96875,25 49.234375x17] baseline: 13.296875
|
||||
BlockContainer <div.text> at (406.96875,26) content-size 201x18 [BFC] children: inline
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [406.96875,26 49.234375x18] baseline: 13.796875
|
||||
"text 3"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
|
@ -47,17 +47,17 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
TextNode <#text>
|
||||
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x50]
|
||||
PaintableBox (Box<BODY>) [8,8 600x34]
|
||||
PaintableWithLines (BlockContainer<DIV>.title) [8,8 198.25x17]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x52]
|
||||
PaintableBox (Box<BODY>) [8,8 600x36]
|
||||
PaintableWithLines (BlockContainer<DIV>.title) [8,8 198.25x18]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<DIV>.text) [8,25 198.25x17]
|
||||
PaintableWithLines (BlockContainer<DIV>.text) [8,26 198.25x18]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<DIV>.title) [206.25,8 200.71875x17]
|
||||
PaintableWithLines (BlockContainer<DIV>.title) [206.25,8 200.71875x18]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<DIV>.text) [206.25,25 200.71875x17]
|
||||
PaintableWithLines (BlockContainer<DIV>.text) [206.25,26 200.71875x18]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<DIV>.title) [406.96875,8 201x17]
|
||||
PaintableWithLines (BlockContainer<DIV>.title) [406.96875,8 201x18]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<DIV>.text) [406.96875,25 201x17]
|
||||
PaintableWithLines (BlockContainer<DIV>.text) [406.96875,26 201x18]
|
||||
TextPaintable (TextNode<#text>)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue