about summary refs log tree commit diff stats
path: root/test/layout/position.html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-05-18 17:01:34 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-18 17:05:51 +0200
commitb0b42add82cb6ad1ee2fa2d207d1068a7cde3413 (patch)
treefc4d684bcce2d9f28ebebd2e4f074506c9a0aca6 /test/layout/position.html
parentdd68a8ca14cb5828afb54228792e9443cdbd43aa (diff)
downloadchawan-b0b42add82cb6ad1ee2fa2d207d1068a7cde3413.tar.gz
layout: relative positioning fixes
Fix percentage-based left/right etc.
Diffstat (limited to 'test/layout/position.html')
-rw-r--r--test/layout/position.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/layout/position.html b/test/layout/position.html
new file mode 100644
index 00000000..a88fdde5
--- /dev/null
+++ b/test/layout/position.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<div style="background-color: red; position: absolute; left: 30ch">test test test test test test test test test test test test test test test test</div>
+<br>
+<br>
+<div style="background-color: green; position: absolute">abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd</div>
+<br>
+<br>
+<div style="background-color: red; position: absolute; left: 30ch; right: 30ch">test test test</div>
+<br>
+<br>
+<div style="position: absolute; width: 10ch">
+<div style="width: 30ch">
+<div style="background-color: blue; position: relative; left: 50%">test</div>