about summary refs log tree commit diff stats
path: root/test/layout
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-10-16 22:13:53 +0200
committerbptato <nincsnevem662@gmail.com>2024-10-16 22:18:21 +0200
commitc20166207867f536201ae7148608b9db202a2739 (patch)
treed71e861d7182ad83929281c978c98d28608a2cef /test/layout
parentfe0b8ee5f1128ddab8bc8be9c71339243d3e9de2 (diff)
downloadchawan-c20166207867f536201ae7148608b9db202a2739.tar.gz
layout: fix inline float + position: absolute bug
As per standard, float "only applies to elements that [...] are not
absolutely positioned."
Diffstat (limited to 'test/layout')
-rw-r--r--test/layout/float-absolute.expected1
-rw-r--r--test/layout/float-absolute.html5
2 files changed, 6 insertions, 0 deletions
diff --git a/test/layout/float-absolute.expected b/test/layout/float-absolute.expected
new file mode 100644
index 00000000..9daeafb9
--- /dev/null
+++ b/test/layout/float-absolute.expected
@@ -0,0 +1 @@
+test
diff --git a/test/layout/float-absolute.html b/test/layout/float-absolute.html
new file mode 100644
index 00000000..06eab6f5
--- /dev/null
+++ b/test/layout/float-absolute.html
@@ -0,0 +1,5 @@
+<span>
+<div style="position: absolute; float: right">
+test
+</div>
+</span>