summaryrefslogtreecommitdiff
path: root/Tests/LibWeb/Layout/input/position-absolute-ignores-padding-of-position-relative-floating-parent.html
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/LibWeb/Layout/input/position-absolute-ignores-padding-of-position-relative-floating-parent.html')
-rw-r--r--Tests/LibWeb/Layout/input/position-absolute-ignores-padding-of-position-relative-floating-parent.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/input/position-absolute-ignores-padding-of-position-relative-floating-parent.html b/Tests/LibWeb/Layout/input/position-absolute-ignores-padding-of-position-relative-floating-parent.html
new file mode 100644
index 0000000000..697317840f
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/position-absolute-ignores-padding-of-position-relative-floating-parent.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html><head><style>
+* {
+ font-family: 'SerenitySans';
+}
+
+#guide {
+ width: 200px;
+ height: 200px;
+ background-color: blue;
+}
+
+#container {
+ position: relative;
+ float: left;
+ padding: 10px;
+}
+
+#box {
+ position: absolute;
+ left: 0px;
+ top: 0px;
+ width: 100px;
+ height: 100px;
+ background-color: orange;
+}
+</style></head><body><div id="guide"><div id="container"><div id="box"> \ No newline at end of file