Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-z-index-change-repaint.html

Issue 1994373002: Convert some repaint tests into ref tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel ="stylesheet"> 4 <link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel ="stylesheet">
5 <link href="resources/grid.css" rel="stylesheet"> 5 <link href="resources/grid.css" rel="stylesheet">
6 <style> 6 <style>
7 .grid { 7 .grid {
8 grid-template-rows: 100px; 8 grid-template-rows: 100px;
9 grid-template-columns: 200px 200px; 9 grid-template-columns: 200px 200px;
10 margin-top: 10px; 10 margin-top: 10px;
11 } 11 }
12 .red { 12 .red {
13 background-color: red; 13 background-color: red;
14 } 14 }
15 .green { 15 .green {
16 background-color: green; 16 background-color: green;
17 } 17 }
18 .negativeZIndex { 18 .negativeZIndex {
19 z-index: -1; 19 z-index: -1;
20 } 20 }
21 </style> 21 </style>
22 <script src="../repaint/resources/text-based-repaint.js"></script> 22 <script src="../repaint/resources/text-based-repaint.js"></script>
23 <script> 23 <script>
24 function repaintTest() 24 function repaintTest()
25 { 25 {
26 document.getElementById('item1').style.zIndex = 1; 26 document.getElementById('item1').style.zIndex = 1;
27 document.getElementById('item2').style.zIndex = 1; 27 document.getElementById('item2').style.zIndex = 1;
28 } 28 }
29 29
30 window.onload = runRepaintTest; 30 window.onload = runRepaintAndPixelTest;
31 </script> 31 </script>
32 </head> 32 </head>
33 <body> 33 <body>
34 <div style="height: 100px"> 34 <div style="height: 100px">
35 <p>This test checks that grid items correctly repaint when 'z-index' changes .</p> 35 <p>This test checks that grid items correctly repaint when 'z-index' changes .</p>
36 <p>For this test to pass, there should be no red below.</p> 36 <p>For this test to pass, there should be no red below.</p>
37 </div> 37 </div>
38 38
39 <div class="grid fit-content"> 39 <div class="grid fit-content">
40 <div id="item1" class="sizedToGridArea green negativeZIndex"></div> 40 <div id="item1" class="sizedToGridArea green negativeZIndex"></div>
41 <div class="sizedToGridArea red"></div> 41 <div class="sizedToGridArea red"></div>
42 </div> 42 </div>
43 43
44 <div class="grid fit-content"> 44 <div class="grid fit-content">
45 <div id="item2" class="sizedToGridArea green"></div> 45 <div id="item2" class="sizedToGridArea green"></div>
46 <div class="sizedToGridArea red"></div> 46 <div class="sizedToGridArea red"></div>
47 </div> 47 </div>
48 48
49 </body> 49 </body>
50 </html> 50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698