blob: 23c1b8edfa16058bf2c8f19ea46c720a49cf3b70 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
if (window.internals)
window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
</script>
<style>
#fixed1 { -webkit-flow-into: flow; width: 100px; height: 100px; top: 100px; left: 100px; background-color: green; position: fixed; z-index: 10; }
#fixed2 { -webkit-flow-into: flow; width: 100px; height: 100px; top: 150px; left: 150px; background-color: orange; position: fixed; z-index: 1; }
#fixed3 { -webkit-flow-into: flow; width: 100px; height: 100px; top: 175px; left: 175px; background-color: blue; position: fixed; z-index: 5; }
/* We need a region because otherwise the fixed positioned elements are not displayed */
#region { -webkit-flow-from: flow; }
</style>
</head>
<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=125144">WebKit Bug 125144</a> [CSS Regions] Enable accelerated compositing for fixed elements in named flows</p>
<p>Test that painting the fixed positioned elements inside the same named flow takes zIndex into account.</p>
<p>On success, you should see 3 rectangles painted in the following order: green, blue, orange.</p>
<div id="fixed1"></div>
<div id="fixed2"></div>
<div id="fixed3"></div>
<div id="region"></div>
</body>
</html>