diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-11-09 18:26:45 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-11-09 18:38:00 +0100 |
| commit | 0dcaa77525327f7ce56e8cd32328973ac1bf2793 (patch) | |
| tree | 8fb3720082bfaab5903bfc9714bdf2edfaf77709 /test | |
| parent | a1dfab6f5882d0ba86cf0709ca05bc193289a599 (diff) | |
| download | chawan-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')
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 @@ [48;2;255;0;0mabsolute 1[49m -line two[48;2;255;0;0mabsolute 2[49m +line [48;2;255;0;0mabsabsolute 2[49m [48;2;0;0;255mabsolute 3[49m line four [38;2;109;109;109m[48;2;255;255;0mabsolute 4[39m[49m 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 [48;2;255;0;0m2t 2tt[49mest -asdfasd fa[48;2;255;0;0msd [49m +asdfasd fa[48;2;255;0;0m2d [49m [48;2;255;0;0m [49m 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> |