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

Side by Side Diff: LayoutTests/fast/css-grid-layout/grid-element-change-rows-repaint.html

Issue 146773002: [CSS Grid Layout] Rename grid-definition-{columns|rows} to match the new syntax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed renaming issues with some tests. Created 6 years, 10 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 <script src="../repaint/resources/text-based-repaint.js"></script> 3 <script src="../repaint/resources/text-based-repaint.js"></script>
4 <script> 4 <script>
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 6 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1);
7 7
8 function repaintTest() 8 function repaintTest()
9 { 9 {
10 var gridElement = document.getElementsByClassName("grid")[0]; 10 var gridElement = document.getElementsByClassName("grid")[0];
11 gridElement.style.gridDefinitionRows = "100px 50px"; 11 gridElement.style.gridTemplateRows = "100px 50px";
12 } 12 }
13 window.addEventListener("load", runRepaintTest, false); 13 window.addEventListener("load", runRepaintTest, false);
14 </script> 14 </script>
15 <link href="resources/grid.css" rel="stylesheet"> 15 <link href="resources/grid.css" rel="stylesheet">
16 <style> 16 <style>
17 body { 17 body {
18 font: 10px/1 Ahem; 18 font: 10px/1 Ahem;
19 } 19 }
20 20
21 .grid { 21 .grid {
22 width: -webkit-fit-content; 22 width: -webkit-fit-content;
23 grid-definition-rows: 50px 100px; 23 grid-template-rows: 50px 100px;
24 grid-definition-columns: 100px; 24 grid-template-columns: 100px;
25 } 25 }
26 .sizedToGridArea { 26 .sizedToGridArea {
27 background-color: purple; 27 background-color: purple;
28 } 28 }
29 </style> 29 </style>
30 <body> 30 <body>
31 <div>This test checks that changing the grid-definition-rows lead to a repaint. The final grid element should be 100px * 150px, the grid item should be 100px * 100px. No trace of the elements before the grid-definition-rows change should be seen.</div> 31 <div>This test checks that changing the grid-template-rows lead to a repaint. Th e final grid element should be 100px * 150px, the grid item should be 100px * 10 0px. No trace of the elements before the grid-template-rows change should be see n.</div>
32 <div class="constrainedContainer"> 32 <div class="constrainedContainer">
33 <div class="grid"> 33 <div class="grid">
34 <div class="sizedToGridArea"></div> 34 <div class="sizedToGridArea"></div>
35 </div> 35 </div>
36 </div> 36 </div>
37 </body> 37 </body>
38 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698