1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:37:34 +00:00

LibWeb: Resolve percentage line-height values before CSS inheritance

Percentage line-height values are relative to 1em (i.e the font-size
of the element). We have to resolve their computed values before
proceeding with inheritance.
This commit is contained in:
Andreas Kling 2023-03-12 16:09:30 +01:00
parent 7b55d79d3a
commit 7bb7d87807
3 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,13 @@
<!DOCTYPE html><html><head><style>
* {
border: 1px solid black !important;
font-family: "SerenitySans";
}
html {
line-height: 200%;
font-size: 16px;
}
div {
font-size: 40px;
}
</style></head><body><div>The Linux Kernel Archives