summaryrefslogtreecommitdiff
path: root/Tests/LibWeb
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-05-06 20:51:56 +0200
committerAndreas Kling <kling@serenityos.org>2023-05-07 06:28:47 +0200
commitfc3c3aef2295e6684ea72f442025a4435450f937 (patch)
tree3c39f8607fb4c97746afec830b594770531bd60e /Tests/LibWeb
parent36ff6187f6f5e67ba3f2085b5257ec1de10cf79b (diff)
downloadserenity-fc3c3aef2295e6684ea72f442025a4435450f937.zip
LibWeb: Enforce min/max height constraints on abspos replaced boxes
Fixes #18658
Diffstat (limited to 'Tests/LibWeb')
-rw-r--r--Tests/LibWeb/Layout/expected/abspos-image-with-min-height-constraint.txt4
-rw-r--r--Tests/LibWeb/Layout/input/abspos-image-with-min-height-constraint.html9
2 files changed, 13 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/expected/abspos-image-with-min-height-constraint.txt b/Tests/LibWeb/Layout/expected/abspos-image-with-min-height-constraint.txt
new file mode 100644
index 0000000000..57a613234f
--- /dev/null
+++ b/Tests/LibWeb/Layout/expected/abspos-image-with-min-height-constraint.txt
@@ -0,0 +1,4 @@
+Viewport <#document> at (0,0) content-size 800x600 children: not-inline
+ BlockContainer <html> at (0,0) content-size 800x16 [BFC] children: not-inline
+ BlockContainer <body> at (8,8) content-size 784x0 children: not-inline
+ ImageBox <img#zero-dimensions-but-min-percentages> at (8,8) content-size 800x600 positioned children: not-inline
diff --git a/Tests/LibWeb/Layout/input/abspos-image-with-min-height-constraint.html b/Tests/LibWeb/Layout/input/abspos-image-with-min-height-constraint.html
new file mode 100644
index 0000000000..87309674db
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/abspos-image-with-min-height-constraint.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html><html><head><style>
+#zero-dimensions-but-min-percentages {
+ width: 0;
+ height: 0;
+ min-width: 100%;
+ min-height: 100%;
+ position: absolute;
+}
+</style><body><img id="zero-dimensions-but-min-percentages"> \ No newline at end of file