summaryrefslogtreecommitdiff
path: root/Tests/LibWeb/Layout/input
diff options
context:
space:
mode:
authorSimon Wanner <simon+git@skyrising.xyz>2023-03-17 23:27:15 +0100
committerAndreas Kling <kling@serenityos.org>2023-03-18 20:14:52 +0100
commit482fa2d4e24049f0173b5a8743060ba03f8c6832 (patch)
tree0ef949e52cb0b72b9d1b65f2e963d5d691c5841f /Tests/LibWeb/Layout/input
parent554c4af90f5721e2a15f8db5dc79cf895a2bc81a (diff)
downloadserenity-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.html23
-rw-r--r--Tests/LibWeb/Layout/input/lh-2.html22
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">