diff options
author | Simon Wanner <simon+git@skyrising.xyz> | 2023-03-17 23:27:15 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-18 20:14:52 +0100 |
commit | 482fa2d4e24049f0173b5a8743060ba03f8c6832 (patch) | |
tree | 0ef949e52cb0b72b9d1b65f2e963d5d691c5841f /Tests/LibWeb/Layout/input | |
parent | 554c4af90f5721e2a15f8db5dc79cf895a2bc81a (diff) | |
download | serenity-482fa2d4e24049f0173b5a8743060ba03f8c6832.zip |
Tests/LibWeb: Add two tests for lh and rlh units
Diffstat (limited to 'Tests/LibWeb/Layout/input')
-rw-r--r-- | Tests/LibWeb/Layout/input/lh-1.html | 23 | ||||
-rw-r--r-- | Tests/LibWeb/Layout/input/lh-2.html | 22 |
2 files changed, 45 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/input/lh-1.html b/Tests/LibWeb/Layout/input/lh-1.html new file mode 100644 index 0000000000..a1af79c08c --- /dev/null +++ b/Tests/LibWeb/Layout/input/lh-1.html @@ -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"> diff --git a/Tests/LibWeb/Layout/input/lh-2.html b/Tests/LibWeb/Layout/input/lh-2.html new file mode 100644 index 0000000000..b6eb3c0af0 --- /dev/null +++ b/Tests/LibWeb/Layout/input/lh-2.html @@ -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"> |