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

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

Issue 1488493003: [css-grid] refactoring of layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch rebased and refactoring of alignment css rules. Created 4 years, 11 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: 300px; 15 width: 300px;
15 height: 200px; 16 height: 200px;
16 } 17 }
17 18
18 .cell { 19 .cell {
19 width: 20px; 20 width: 20px;
20 height: 40px; 21 height: 40px;
21 } 22 }
22
23 .justifyContentStart {
24 justify-content: start;
25 }
26
27 .justifyContentEnd {
28 justify-content: end;
29 }
30
31 .justifyContentCenter {
32 justify-content: center;
33 }
34
35 .justifyContentLeft {
36 justify-content: left;
37 }
38
39 .justifyContentRight {
40 justify-content: right;
41 }
42
43 .justifyContentFlexStart {
44 justify-content: flex-start;
45 }
46
47 .justifyContentFlexEnd {
48 justify-content: flex-end;
49 }
50 </style> 23 </style>
51 </head> 24 </head>
52 <body onload="checkLayout('.grid')"> 25 <body onload="checkLayout('.grid')">
53 26
54 <p>This test checks that the align-content property is applied correctly in vert ical-RL grids.</p> 27 <p>This test checks that the align-content property is applied correctly in vert ical-RL grids.</p>
55 28
56 <div style="position: relative"> 29 <div style="position: relative">
57 <p>direction: LTR | justify-content: 'center'</p> 30 <p>direction: LTR | justify-content: 'center'</p>
58 <div class="grid verticalRL justifyContentCenter" data-expected-width="300" data-expected-height="200"> 31 <div class="grid verticalRL justifyContentCenter" data-expected-width="300" data-expected-height="200">
59 <div class="cell firstRowFirstColumn" data-offset-x="280" data-offset-y= "50" data-expected-width="20" data-expected-height="40"></div> 32 <div class="cell firstRowFirstColumn" data-offset-x="280" data-offset-y= "50" data-expected-width="20" data-expected-height="40"></div>
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 <div class="grid verticalRL directionRTL justifyContentEnd" data-expected-wi dth="300" data-expected-height="200"> 122 <div class="grid verticalRL directionRTL justifyContentEnd" data-expected-wi dth="300" data-expected-height="200">
150 <div class="cell firstRowFirstColumn" data-offset-x="280" data-offset-y= "60" data-expected-width="20" data-expected-height="40"></div> 123 <div class="cell firstRowFirstColumn" data-offset-x="280" data-offset-y= "60" data-expected-width="20" data-expected-height="40"></div>
151 <div class="firstRowSecondColumn" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="50"></div> 124 <div class="firstRowSecondColumn" data-offset-x="200" data-offset-y="0" data-expected-width="100" data-expected-height="50"></div>
152 <div class="secondRowFirstColumn" data-offset-x="100" data-offset-y="50" data-expected-width="100" data-expected-height="50"></div> 125 <div class="secondRowFirstColumn" data-offset-x="100" data-offset-y="50" data-expected-width="100" data-expected-height="50"></div>
153 <div class="cell secondRowSecondColumn" data-offset-x="180" data-offset- y="10" data-expected-width="20" data-expected-height="40"></div> 126 <div class="cell secondRowSecondColumn" data-offset-x="180" data-offset- y="10" data-expected-width="20" data-expected-height="40"></div>
154 </div> 127 </div>
155 </div> 128 </div>
156 129
157 </body> 130 </body>
158 </html> 131 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698