Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<link rel="match" href="zindex-affects-block-in-inline-ref.html">
<div style="position: relative; z-index: 1; background: red; width: 100px; height: 100px;"></div>
<span style="position: relative; z-index: 2; top: -100px;">
<div style="background: green; width: 100px; height: 100px;"></div>
</span>