| <!DOCTYPE html> |
| <html> |
| <head> |
| <script> |
| if (window.internals) |
| window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true); |
| </script> |
| <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; z-index: 1; } |
| |
| #fixed3 { width: 100px; height: 100px; top: 175px; left: 175px; background-color: blue; position: fixed; z-index: 5; } |
| </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 collected in different named flows 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> |
| </body> |
| </html> |