mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +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
|
@ -15,7 +15,6 @@
|
|||
#include <LibWeb/CSS/StyleComputer.h>
|
||||
#include <LibWeb/DOM/Document.h>
|
||||
#include <LibWeb/HTML/BrowsingContext.h>
|
||||
#include <LibWeb/HTML/HTMLHtmlElement.h>
|
||||
#include <LibWeb/HTML/Window.h>
|
||||
#include <LibWeb/Layout/Node.h>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue