aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-01-06 16:23:19 +0100
committerbptato <nincsnevem662@gmail.com>2025-01-06 16:23:19 +0100
commit9ae109b366c7a933965ff506a7ce275a7abe71ed (patch)
treec65be2b280066174fb8a106fbafe263f0c00d792 /test
parent4ee4009cf6114db7c48972e7fb58a1397f024c09 (diff)
downloadchawan-9ae109b366c7a933965ff506a7ce275a7abe71ed.tar.gz
layout, render: establish absolute container with position: sticky
We do not support sticky scrolling, but this much should still work.
Diffstat (limited to 'test')
-rw-r--r--test/layout/position-sticky-establishes-absolute-container.expected2
-rw-r--r--test/layout/position-sticky-establishes-absolute-container.html8
2 files changed, 10 insertions, 0 deletions
diff --git a/test/layout/position-sticky-establishes-absolute-container.expected b/test/layout/position-sticky-establishes-absolute-container.expected
new file mode 100644
index 00000000..33c1f19e
--- /dev/null
+++ b/test/layout/position-sticky-establishes-absolute-container.expected
@@ -0,0 +1,2 @@
+test
+absolute
diff --git a/test/layout/position-sticky-establishes-absolute-container.html b/test/layout/position-sticky-establishes-absolute-container.html
new file mode 100644
index 00000000..4725a883
--- /dev/null
+++ b/test/layout/position-sticky-establishes-absolute-container.html
@@ -0,0 +1,8 @@
+<div>
+test
+</div>
+<div style="position: sticky">
+<div style="position: absolute; top: 0">
+absolute
+</div>
+</div>