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:
parent
7b55d79d3a
commit
7bb7d87807
3 changed files with 31 additions and 0 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue