diff options
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> |