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

Side by Side Diff: LayoutTests/fast/css-grid-layout/grid-auto-flow-update.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> 3 <script>
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1);
6 </script> 6 </script>
7 <link href="resources/grid.css" rel="stylesheet"> 7 <link href="resources/grid.css" rel="stylesheet">
8 <script src="../../resources/check-layout.js"></script> 8 <script src="../../resources/check-layout.js"></script>
9 <style> 9 <style>
10 .grid { 10 .grid {
11 grid-definition-columns: 50px 100px; 11 grid-template-columns: 50px 100px;
12 grid-definition-rows: 50px 100px; 12 grid-template-rows: 50px 100px;
13 } 13 }
14 </style> 14 </style>
15 <script> 15 <script>
16 function testGrid(flow, positionAndSize) 16 function testGrid(flow, positionAndSize)
17 { 17 {
18 var gridElement = document.getElementsByClassName("grid")[0]; 18 var gridElement = document.getElementsByClassName("grid")[0];
19 gridElement.style.gridAutoFlow = flow; 19 gridElement.style.gridAutoFlow = flow;
20 var gridItem = document.getElementById("autoItem"); 20 var gridItem = document.getElementById("autoItem");
21 gridItem.setAttribute("data-offset-x", positionAndSize.offsetX); 21 gridItem.setAttribute("data-offset-x", positionAndSize.offsetX);
22 gridItem.setAttribute("data-offset-y", positionAndSize.offsetY); 22 gridItem.setAttribute("data-offset-y", positionAndSize.offsetY);
(...skipping 16 matching lines...) Expand all
39 <body> 39 <body>
40 <div>This test checks that updating the grid's element's grid-auto-flow property recomputes the grid.</div> 40 <div>This test checks that updating the grid's element's grid-auto-flow property recomputes the grid.</div>
41 <div style="position: relative"> 41 <div style="position: relative">
42 <div class="grid"> 42 <div class="grid">
43 <div class="sizedToGridArea autoRowAutoColumn" id="autoItem" data-offset -x="0" data-offset-y="0" data-expected-width="50" data-expected-height="50"></di v> 43 <div class="sizedToGridArea autoRowAutoColumn" id="autoItem" data-offset -x="0" data-offset-y="0" data-expected-width="50" data-expected-height="50"></di v>
44 <div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data- offset-y="0" data-expected-width="50" data-expected-height="50"></div> 44 <div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data- offset-y="0" data-expected-width="50" data-expected-height="50"></div>
45 </div> 45 </div>
46 </div> 46 </div>
47 </body> 47 </body>
48 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698