aboutsummaryrefslogtreecommitdiffstats
path: root/test/layout/position-relative-bottom-right.html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-12-30 19:32:42 +0100
committerbptato <nincsnevem662@gmail.com>2024-12-30 19:32:42 +0100
commit1e897b58ef26bca372777f431c9a837fb27085fd (patch)
treeaa6abcca4db0dd78917a0944dd80f71da1080c0f /test/layout/position-relative-bottom-right.html
parentbc3b11ebd3c2554f4f30e9afb4d46328c748e9be (diff)
downloadchawan-1e897b58ef26bca372777f431c9a837fb27085fd.tar.gz
layout: fix position: relative for right, bottom
They are relative to the box's actual position, not that of the parent: > For relatively positioned boxes, the offset is with respect to the > bottom edge of the box itself.
Diffstat (limited to 'test/layout/position-relative-bottom-right.html')
-rw-r--r--test/layout/position-relative-bottom-right.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/layout/position-relative-bottom-right.html b/test/layout/position-relative-bottom-right.html
new file mode 100644
index 00000000..f0c27abc
--- /dev/null
+++ b/test/layout/position-relative-bottom-right.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<div style="height: 2em">
+hi
+</div>
+<div style="margin-left: 1ch; height: 2em; bottom: 1em; right: 1ch; position: relative">
+test
+</div>
+</div>
+<div>
+asdf