aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-11-09 18:26:45 +0100
committerbptato <nincsnevem662@gmail.com>2024-11-09 18:38:00 +0100
commit0dcaa77525327f7ce56e8cd32328973ac1bf2793 (patch)
tree8fb3720082bfaab5903bfc9714bdf2edfaf77709 /test
parenta1dfab6f5882d0ba86cf0709ca05bc193289a599 (diff)
downloadchawan-0dcaa77525327f7ce56e8cd32328973ac1bf2793.tar.gz
renderdocument: basic stacking context support
negative z-index and inline positioning are still not respected, but better than nothing I guess.
Diffstat (limited to 'test')
-rw-r--r--test/layout/position-absolute-block-in-inline.color.expected2
-rw-r--r--test/layout/position-absolute-block-in-inline.html6
-rw-r--r--test/layout/position-absolute-with-relative-inline-parent-offset.color.expected5
-rw-r--r--test/layout/position-absolute-with-relative-inline-parent-offset.html3
-rw-r--r--test/layout/position-relative-stacking-context.expected2
-rw-r--r--test/layout/position-relative-stacking-context.html2
6 files changed, 8 insertions, 12 deletions
diff --git a/test/layout/position-absolute-block-in-inline.color.expected b/test/layout/position-absolute-block-in-inline.color.expected
index b1763fb8..b3d1eeb6 100644
--- a/test/layout/position-absolute-block-in-inline.color.expected
+++ b/test/layout/position-absolute-block-in-inline.color.expected
@@ -1,5 +1,5 @@
absolute 1
-line twoabsolute 2
+line absabsolute 2
absolute 3
line four
absolute 4
diff --git a/test/layout/position-absolute-block-in-inline.html b/test/layout/position-absolute-block-in-inline.html
index 05298fc7..0113dac1 100644
--- a/test/layout/position-absolute-block-in-inline.html
+++ b/test/layout/position-absolute-block-in-inline.html
@@ -6,12 +6,10 @@ line
<div style="display: inline-block; position: absolute; top: 0; left: 0; background-color: red">
absolute 1
</div>
-<!-- TODO I don't really understand why, but this should overprint
-"two", not the other way around.
+<!-- this should overprint "two", not the other way around. -->
<div style="display: inline-block; position: absolute; background-color: red">
-absolute 2
+absolute 5
</div>
--->
two
<div style="display: inline-block; position: absolute; background-color: red">
absolute 2
diff --git a/test/layout/position-absolute-with-relative-inline-parent-offset.color.expected b/test/layout/position-absolute-with-relative-inline-parent-offset.color.expected
index 65d90717..1977ba24 100644
--- a/test/layout/position-absolute-with-relative-inline-parent-offset.color.expected
+++ b/test/layout/position-absolute-with-relative-inline-parent-offset.color.expected
@@ -5,14 +5,11 @@ make this even more complex.
I don't care, but feel free to fix it ;)
-(Also, position: absolute should overprint inline boxes after it, but it
-doesn't. This needs further investigation.)
-
test test test testadsfasdf
test test 2t 2ttest
-asdfasd fasd 
+asdfasd fa2d 
 
diff --git a/test/layout/position-absolute-with-relative-inline-parent-offset.html b/test/layout/position-absolute-with-relative-inline-parent-offset.html
index c86d844c..ccebeb55 100644
--- a/test/layout/position-absolute-with-relative-inline-parent-offset.html
+++ b/test/layout/position-absolute-with-relative-inline-parent-offset.html
@@ -5,9 +5,6 @@ because the CSS standard explicitly specifies this as UB and I *really*
don't want to make this even more complex.
<p>
I don't care, but feel free to fix it ;)
-<p>
-(Also, position: absolute should overprint inline boxes after it, but it
-doesn't. This needs further investigation.)
</p>
<br>
<br>test test <span style="position:relative">test test<div style="display: inline-block">adsfasdf</div><BR>
diff --git a/test/layout/position-relative-stacking-context.expected b/test/layout/position-relative-stacking-context.expected
new file mode 100644
index 00000000..2301a643
--- /dev/null
+++ b/test/layout/position-relative-stacking-context.expected
@@ -0,0 +1,2 @@
+
+relative
diff --git a/test/layout/position-relative-stacking-context.html b/test/layout/position-relative-stacking-context.html
new file mode 100644
index 00000000..2cbc18de
--- /dev/null
+++ b/test/layout/position-relative-stacking-context.html
@@ -0,0 +1,2 @@
+<div style="position: relative; top: 1em">relative</div>
+<div>static</div>