about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-04-07 01:42:56 +0200
committerbptato <nincsnevem662@gmail.com>2025-04-07 21:43:28 +0200
commitf5de7f6202cae1188b79af7a091c695652a1e78d (patch)
tree6e155fc41e5e42b0ad4065426ddd564f2100f315 /test
parent6c48f2389c116c98abdd46d5c85aeec1a9e22519 (diff)
downloadchawan-f5de7f6202cae1188b79af7a091c695652a1e78d.tar.gz
layout: always treat flex items as positioned boxes
it still isn't really correct, they aren't supposed to behave as
absolute positioning containers...
Diffstat (limited to 'test')
-rw-r--r--test/layout/non-positioned-flex-item-respects-accepts-z-index.color.expected1
-rw-r--r--test/layout/non-positioned-flex-item-respects-accepts-z-index.html5
2 files changed, 6 insertions, 0 deletions
diff --git a/test/layout/non-positioned-flex-item-respects-accepts-z-index.color.expected b/test/layout/non-positioned-flex-item-respects-accepts-z-index.color.expected
new file mode 100644
index 00000000..46d1979d
--- /dev/null
+++ b/test/layout/non-positioned-flex-item-respects-accepts-z-index.color.expected
@@ -0,0 +1 @@
+test test
diff --git a/test/layout/non-positioned-flex-item-respects-accepts-z-index.html b/test/layout/non-positioned-flex-item-respects-accepts-z-index.html
new file mode 100644
index 00000000..956f2591
--- /dev/null
+++ b/test/layout/non-positioned-flex-item-respects-accepts-z-index.html
@@ -0,0 +1,5 @@
+<!DOCTYPE html>
+<div style="display: flex">
+<div style="background: red; position: absolute; height: 1em; width: 5ch"></div>
+<div style="z-index: 1">
+test test