summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LibWeb/Layout/expected/automatic-height-of-non-replaced-abspos-element-must-not-be-negative.txt5
-rw-r--r--Tests/LibWeb/Layout/input/automatic-height-of-non-replaced-abspos-element-must-not-be-negative.html11
2 files changed, 16 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/expected/automatic-height-of-non-replaced-abspos-element-must-not-be-negative.txt b/Tests/LibWeb/Layout/expected/automatic-height-of-non-replaced-abspos-element-must-not-be-negative.txt
new file mode 100644
index 0000000000..c00e615415
--- /dev/null
+++ b/Tests/LibWeb/Layout/expected/automatic-height-of-non-replaced-abspos-element-must-not-be-negative.txt
@@ -0,0 +1,5 @@
+Viewport <#document> at (0,0) content-size 800x600 children: not-inline
+ BlockContainer <html> at (0,0) content-size 800x0 children: not-inline
+ BlockContainer <body.outer> at (8,8) content-size 0x0 positioned children: not-inline
+ BlockContainer <div.inner> at (9,9) content-size 0x0 positioned children: inline
+ TextNode <#text>
diff --git a/Tests/LibWeb/Layout/input/automatic-height-of-non-replaced-abspos-element-must-not-be-negative.html b/Tests/LibWeb/Layout/input/automatic-height-of-non-replaced-abspos-element-must-not-be-negative.html
new file mode 100644
index 0000000000..8f08ee3495
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/automatic-height-of-non-replaced-abspos-element-must-not-be-negative.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html><html><head><style>
+ .outer {
+ position: absolute;
+ }
+ .inner {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ border: 1px solid black;
+ }
+</style></head><body class="outer"><div class="inner">