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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-content.html

Issue 1309513008: [css-grid] Implement grid gutters (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased patch for landing Created 5 years, 2 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="resources/grid.css" rel="stylesheet"> 4 <link href="resources/grid.css" rel="stylesheet">
5 <link href="resources/grid-alignment.css" rel="stylesheet">
5 <script src="../../resources/check-layout.js"></script> 6 <script src="../../resources/check-layout.js"></script>
6 <style> 7 <style>
7 body { 8 body {
8 margin: 0; 9 margin: 0;
9 } 10 }
10 11
11 .grid { 12 .grid {
12 grid: 50px 50px / 100px 100px; 13 grid: 50px 50px / 100px 100px;
13 position: relative; 14 position: relative;
14 width: 200px; 15 width: 200px;
15 height: 300px; 16 height: 300px;
16 } 17 }
17 18
18 .verticalGrid { 19 .verticalGrid {
19 width: 300px; 20 width: 300px;
20 height: 200px; 21 height: 200px;
21 } 22 }
22 23
23 .cell { 24 .cell {
24 width: 20px; 25 width: 20px;
25 height: 40px; 26 height: 40px;
26 } 27 }
27
28 .alignContentBaseline {
29 align-content: baseline;
30 }
31
32 .alignContentLastBaseline {
33 align-content: last-baseline;
34 }
35
36 .alignContentStart {
37 align-content: start;
38 }
39
40 .alignContentEnd {
41 align-content: end;
42 }
43
44 .alignContentCenter {
45 align-content: center;
46 }
47
48 .alignContentLeft {
49 align-content: left;
50 }
51
52 .alignContentRight {
53 align-content: right;
54 }
55
56 .alignContentFlexStart {
57 align-content: flex-start;
58 }
59
60 .alignContentFlexEnd {
61 align-content: flex-end;
62 }
63 </style> 28 </style>
64 </head> 29 </head>
65 <body onload="checkLayout('.grid')"> 30 <body onload="checkLayout('.grid')">
66 31
67 <p>This test checks that the align-content property is applied correctly.</p> 32 <p>This test checks that the align-content property is applied correctly.</p>
68 33
69 <div style="position: relative"> 34 <div style="position: relative">
70 <p>direction: LTR | align-content: 'center'</p> 35 <p>direction: LTR | align-content: 'center'</p>
71 <div class="grid alignContentCenter" data-expected-width="200" data-expected -height="300"> 36 <div class="grid alignContentCenter" data-expected-width="200" data-expected -height="300">
72 <div class="cell firstRowFirstColumn" data-offset-x="0" data-offset-y="5 0" data-expected-width="20" data-expected-height="40"></div> 37 <div class="cell firstRowFirstColumn" data-offset-x="0" data-offset-y="5 0" data-expected-width="20" data-expected-height="40"></div>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 <div class="grid directionRTL alignContentEnd" data-expected-width="200" dat a-expected-height="300"> 158 <div class="grid directionRTL alignContentEnd" data-expected-width="200" dat a-expected-height="300">
194 <div class="cell firstRowFirstColumn" data-offset-x="180" data-offset-y= "100" data-expected-width="20" data-expected-height="40"></div> 159 <div class="cell firstRowFirstColumn" data-offset-x="180" data-offset-y= "100" data-expected-width="20" data-expected-height="40"></div>
195 <div class="firstRowSecondColumn" data-offset-x="100" data-offset-y="100 " data-expected-width="50" data-expected-height="100"></div> 160 <div class="firstRowSecondColumn" data-offset-x="100" data-offset-y="100 " data-expected-width="50" data-expected-height="100"></div>
196 <div class="secondRowFirstColumn" data-offset-x="150" data-offset-y="200 " data-expected-width="50" data-expected-height="100"></div> 161 <div class="secondRowFirstColumn" data-offset-x="150" data-offset-y="200 " data-expected-width="50" data-expected-height="100"></div>
197 <div class="cell secondRowSecondColumn" data-offset-x="130" data-offset- y="200" data-expected-width="20" data-expected-height="40"></div> 162 <div class="cell secondRowSecondColumn" data-offset-x="130" data-offset- y="200" data-expected-width="20" data-expected-height="40"></div>
198 </div> 163 </div>
199 </div> 164 </div>
200 165
201 </body> 166 </body>
202 </html> 167 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698