mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 22:57:35 +00:00
Tests/LibWeb: Add two tests for lh and rlh units
This commit is contained in:
parent
554c4af90f
commit
482fa2d4e2
4 changed files with 57 additions and 0 deletions
23
Tests/LibWeb/Layout/input/lh-1.html
Normal file
23
Tests/LibWeb/Layout/input/lh-1.html
Normal 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">
|
Loading…
Add table
Add a link
Reference in a new issue