aboutsummaryrefslogtreecommitdiffstats
path: root/test/layout/absolute-before-resolved-margins.html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-10-28 19:35:36 +0100
committerbptato <nincsnevem662@gmail.com>2024-10-28 19:35:36 +0100
commit95e392b650643ba0638e49999f4cd6b7d9d3a23d (patch)
tree0958b7661e7bf7b7db30aa1b5f667491fee4544d /test/layout/absolute-before-resolved-margins.html
parent78658133f2baf8e4af241592fa7da21948cd62b1 (diff)
downloadchawan-95e392b650643ba0638e49999f4cd6b7d9d3a23d.tar.gz
layout: fix margin resolution for absolutely positioned boxes
Diffstat (limited to 'test/layout/absolute-before-resolved-margins.html')
-rw-r--r--test/layout/absolute-before-resolved-margins.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/layout/absolute-before-resolved-margins.html b/test/layout/absolute-before-resolved-margins.html
new file mode 100644
index 00000000..29cddc03
--- /dev/null
+++ b/test/layout/absolute-before-resolved-margins.html
@@ -0,0 +1,10 @@
+<div style="margin-top: 1em">
+<div style="position: absolute">
+absolute
+</div>
+<div style="margin-top: 2em; margin-left: 10ch; margin-bottom: 1em">
+2em
+</div>
+<div style="position: absolute">
+absolute 2
+</div>