diff options
author | bptato <nincsnevem662@gmail.com> | 2024-05-18 17:01:34 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-05-18 17:05:51 +0200 |
commit | b0b42add82cb6ad1ee2fa2d207d1068a7cde3413 (patch) | |
tree | fc4d684bcce2d9f28ebebd2e4f074506c9a0aca6 /test/layout | |
parent | dd68a8ca14cb5828afb54228792e9443cdbd43aa (diff) | |
download | chawan-b0b42add82cb6ad1ee2fa2d207d1068a7cde3413.tar.gz |
layout: relative positioning fixes
Fix percentage-based left/right etc.
Diffstat (limited to 'test/layout')
-rw-r--r-- | test/layout/position.color.expected | 8 | ||||
-rw-r--r-- | test/layout/position.html | 13 |
2 files changed, 21 insertions, 0 deletions
diff --git a/test/layout/position.color.expected b/test/layout/position.color.expected new file mode 100644 index 00000000..dd312c5a --- /dev/null +++ b/test/layout/position.color.expected @@ -0,0 +1,8 @@ + [48;2;255;0;0mtest test test test test test test test test test [49m + [48;2;255;0;0mtest test test test test test [49m +[48;2;0;128;0mabcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd[49m + + [48;2;255;0;0mtest test test [49m + + [48;2;0;0;255mtest [49m + 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> |