blob: 7f374fdea0953e5624bf948be2ff6bfd64fa384d [file] [log] [blame]
<!DOCTYPE html>
<html>
<script>
if (window.internals)
internals.settings.setAcceleratedCompositingForFixedPositionEnabled(false);
</script>
<head>
<style>
#fixed1 { width: 100px; height: 100px; top: 100px; left: 100px; background-color: green; position: fixed; z-index: 10; }
#fixed2 { width: 100px; height: 100px; top: 150px; left: 150px; background-color: orange; position: fixed; }
</style>
</head>
<body>
<p>Test that painting the fixed positioned elements inside the same named flow takes zIndex into account.</p>
<p>On success, you should see a green rectangle in front of the orange rectangle.</p>
<div id="fixed1"></div>
<div id="fixed2"></div>
</body>
</html>