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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-justify-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 .cell { 19 .cell {
19 width: 20px; 20 width: 20px;
20 height: 40px; 21 height: 40px;
21 } 22 }
22 23
23 .justifyContentBaseline {
24 justify-content: baseline;
25 }
26
27 .justifyContentLastBaseline {
28 justify-content: last-baseline;
29 }
30
31 .justifyContentStart {
32 justify-content: start;
33 }
34
35 .justifyContentEnd {
36 justify-content: end;
37 }
38
39 .justifyContentCenter {
40 justify-content: center;
41 }
42
43 .justifyContentLeft {
44 justify-content: left;
45 }
46
47 .justifyContentRight {
48 justify-content: right;
49 }
50
51 .justifyContentFlexStart {
52 justify-content: flex-start;
53 }
54
55 .justifyContentFlexEnd {
56 justify-content: flex-end;
57 }
58 </style> 24 </style>
59 </head> 25 </head>
60 <body onload="checkLayout('.grid')"> 26 <body onload="checkLayout('.grid')">
61 27
62 <p>This test checks that the justify-content property is applied correctly when using content-position values.</p> 28 <p>This test checks that the justify-content property is applied correctly when using content-position values.</p>
63 29
64 <div style="position: relative"> 30 <div style="position: relative">
65 <p>direction: LTR | justify-content: 'center'</p> 31 <p>direction: LTR | justify-content: 'center'</p>
66 <div class="grid justifyContentCenter" data-expected-width="200" data-expect ed-height="300"> 32 <div class="grid justifyContentCenter" data-expected-width="200" data-expect ed-height="300">
67 <div class="cell firstRowFirstColumn" data-offset-x="50" data-offset-y=" 0" data-expected-width="20" data-expected-height="40"></div> 33 <div class="cell firstRowFirstColumn" data-offset-x="50" data-offset-y=" 0" data-expected-width="20" data-expected-height="40"></div>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 <div class="grid directionRTL justifyContentEnd" data-expected-width="200" d ata-expected-height="300"> 154 <div class="grid directionRTL justifyContentEnd" data-expected-width="200" d ata-expected-height="300">
189 <div class="cell firstRowFirstColumn" data-offset-x="80" data-offset-y=" 0" data-expected-width="20" data-expected-height="40"></div> 155 <div class="cell firstRowFirstColumn" data-offset-x="80" data-offset-y=" 0" data-expected-width="20" data-expected-height="40"></div>
190 <div class="firstRowSecondColumn" data-offset-x="0" data-offset-y="0" da ta-expected-width="50" data-expected-height="100"></div> 156 <div class="firstRowSecondColumn" data-offset-x="0" data-offset-y="0" da ta-expected-width="50" data-expected-height="100"></div>
191 <div class="secondRowFirstColumn" data-offset-x="50" data-offset-y="100" data-expected-width="50" data-expected-height="100"></div> 157 <div class="secondRowFirstColumn" data-offset-x="50" data-offset-y="100" data-expected-width="50" data-expected-height="100"></div>
192 <div class="cell secondRowSecondColumn" data-offset-x="30" data-offset-y ="100" data-expected-width="20" data-expected-height="40"></div> 158 <div class="cell secondRowSecondColumn" data-offset-x="30" data-offset-y ="100" data-expected-width="20" data-expected-height="40"></div>
193 </div> 159 </div>
194 </div> 160 </div>
195 161
196 </body> 162 </body>
197 </html> 163 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698