| Index: LayoutTests/paint/invalidation/spv2/grid-item-z-index-change-repaint.html
|
| diff --git a/LayoutTests/fast/css-grid-layout/grid-item-z-index-change-repaint.html b/LayoutTests/paint/invalidation/spv2/grid-item-z-index-change-repaint.html
|
| similarity index 65%
|
| copy from LayoutTests/fast/css-grid-layout/grid-item-z-index-change-repaint.html
|
| copy to LayoutTests/paint/invalidation/spv2/grid-item-z-index-change-repaint.html
|
| index 9882167d093f79a92d56df7a5129c2e1230c21cc..50655e46fea694e3467a3c11508f36d068f234a9 100644
|
| --- a/LayoutTests/fast/css-grid-layout/grid-item-z-index-change-repaint.html
|
| +++ b/LayoutTests/paint/invalidation/spv2/grid-item-z-index-change-repaint.html
|
| @@ -1,7 +1,8 @@
|
| +<!-- Based on fast/css-grid-layout/grid-item-z-index-change-repaint.html -->
|
| <!DOCTYPE html>
|
| <html>
|
| <head>
|
| -<link href="resources/grid.css" rel="stylesheet">
|
| +<link href="../../../fast/css-grid-layout/resources/grid.css" rel="stylesheet">
|
| <style>
|
| .grid {
|
| grid-template-rows: 100px;
|
| @@ -19,15 +20,19 @@
|
| z-index: -1;
|
| }
|
| </style>
|
| -<script src="../repaint/resources/text-based-repaint.js"></script>
|
| +<script src="resources/paint-invalidation-test.js"></script>
|
| <script>
|
| -function repaintTest()
|
| +window.expectedPaintInvalidationObjects = [
|
| + "LayoutBlockFlow DIV id='item1' class='sizedToGridArea green negativeZIndex'",
|
| + "LayoutBlockFlow DIV id='item2' class='sizedToGridArea green'",
|
| +];
|
| +function paintInvalidationTest()
|
| {
|
| document.getElementById('item1').style.zIndex = 1;
|
| document.getElementById('item2').style.zIndex = 1;
|
| }
|
|
|
| -window.onload = runRepaintTest;
|
| +window.onload = runPaintInvalidationTest;
|
| </script>
|
| </head>
|
| <body>
|
|
|