diff options
author | bptato <nincsnevem662@gmail.com> | 2025-02-18 18:51:57 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2025-02-18 19:26:40 +0100 |
commit | 4f785b483c92ef9755258e49de4a40a14ae4faf6 (patch) | |
tree | 96fc33c571455ef0822428188ab286167c9b8c3e /test/layout/stacking-contexts.html | |
parent | b823867d6d1a557cd38c06cc77116d3cde090a20 (diff) | |
download | chawan-4f785b483c92ef9755258e49de4a40a14ae4faf6.tar.gz |
layout: implement negative z-index
Ugly, but works. I think.
Diffstat (limited to 'test/layout/stacking-contexts.html')
-rw-r--r-- | test/layout/stacking-contexts.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/layout/stacking-contexts.html b/test/layout/stacking-contexts.html new file mode 100644 index 00000000..6eb6e292 --- /dev/null +++ b/test/layout/stacking-contexts.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<style> +div { position: relative; width: 4em; height: 4em; top: 2em; left: 2em } +</style> +<div style="background: red"> +<div style="z-index: -1; background: green"></div> +</div> +<div style="background: blue"></div> +<br> +<div style="z-index: 0; background: red"> +<div style="z-index: 1; background: green"></div> +</div> +<div style="background: blue"></div> +<br> +<div style="background: red"> +<div style="z-index: 1; background: green"></div> +</div> +<div style="background: blue"></div> |