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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-content.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-template-columns: 100px 100px; 13 grid-template-columns: 100px 100px;
13 grid-template-rows: 200px 200px; 14 grid-template-rows: 200px 200px;
14 width: -webkit-fit-content; 15 width: -webkit-fit-content;
15 margin-bottom: 20px; 16 margin-bottom: 20px;
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 .item { 24 .item {
24 width: 8px; 25 width: 8px;
25 height: 16px; 26 height: 16px;
26 background: black; 27 background: black;
27 } 28 }
28 29
29 .alignSelfAuto {
30 align-self: auto;
31 }
32
33 .alignSelfStretch {
34 align-self: stretch;
35 }
36
37 .alignSelfStart {
38 align-self: start;
39 }
40
41 .alignSelfEnd {
42 align-self: end;
43 }
44
45 .alignSelfCenter {
46 align-self: center;
47 }
48
49 .alignSelfRight {
50 align-self: right;
51 }
52
53 .alignSelfLeft {
54 align-self: left;
55 }
56
57 .alignSelfFlexStart {
58 align-self: flex-start;
59 }
60
61 .alignSelfFlexEnd {
62 align-self: flex-end;
63 }
64
65 .alignSelfSelfStart {
66 align-self: self-start;
67 }
68
69 .alignSelfSelfEnd {
70 align-self: self-end;
71 }
72
73 .alignItemsCenter {
74 align-items: center;
75 }
76
77 </style> 30 </style>
78 </head> 31 </head>
79 <body onload="checkLayout('.grid')"> 32 <body onload="checkLayout('.grid')">
80 33
81 <p>This test checks that the align-self property is applied correctly.</p> 34 <p>This test checks that the align-self property is applied correctly.</p>
82 35
83 <div style="position: relative"> 36 <div style="position: relative">
84 <div class="grid" data-expected-width="200" data-expected-height="400"> 37 <div class="grid" data-expected-width="200" data-expected-height="400">
85 <div class="alignSelfStretch firstRowFirstColumn" data-offset-x="0" data -offset-y="0" data-expected-width="100" data-expected-height="200"></div> 38 <div class="alignSelfStretch firstRowFirstColumn" data-offset-x="0" data -offset-y="0" data-expected-width="100" data-expected-height="200"></div>
86 <div class="cell alignSelfStart firstRowSecondColumn" data-offset-x="100 " data-offset-y="0" data-expected-width="20" data-expected-height="40"></div> 39 <div class="cell alignSelfStart firstRowSecondColumn" data-offset-x="100 " data-offset-y="0" data-expected-width="20" data-expected-height="40"></div>
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 <div class="item"></div> 231 <div class="item"></div>
279 </div> 232 </div>
280 <div class="cell alignSelfSelfEnd secondRowSecondColumn verticalRL" data -offset-x="200" data-offset-y="100" data-expected-width="20" data-expected-heigh t="40"> 233 <div class="cell alignSelfSelfEnd secondRowSecondColumn verticalRL" data -offset-x="200" data-offset-y="100" data-expected-width="20" data-expected-heigh t="40">
281 <div class="item"></div> 234 <div class="item"></div>
282 </div> 235 </div>
283 </div> 236 </div>
284 </div> 237 </div>
285 238
286 </body> 239 </body>
287 </html> 240 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-content.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698