1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 16:17:45 +00:00

Tests/LibWeb: Add two tests for lh and rlh units

This commit is contained in:
Simon Wanner 2023-03-17 23:27:15 +01:00 committed by Andreas Kling
parent 554c4af90f
commit 482fa2d4e2
4 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,23 @@
<!DOCTYPE html>
<head><style>
* {
font-family: SerenitySans;
}
:root {
font-size: 20px;
line-height: 2;
}
#a {
background-color: red;
width: 100px;
height: 100px;
}
#b {
background-color: green;
font-size: 50px;
line-height: 100%;
width: 2lh;
height: 2.5rlh;
}
</style>
<body><div id="a"><div id="b">

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<head><style>
* {
font-family: SerenitySans;
}
:root {
font-size: 20px;
line-height: 2;
}
#a {
background-color: red;
width: 100px;
height: 100px;
}
#b {
background-color: green;
line-height: 50px;
width: 2lh;
height: 2.5rlh;
}
</style>
<body><div id="a"><div id="b">