Chromium Code Reviews| Index: LayoutTests/fast/css-grid-layout/grid-align-justify-overflow.html |
| diff --git a/LayoutTests/fast/css-grid-layout/grid-align-justify-overflow.html b/LayoutTests/fast/css-grid-layout/grid-align-justify-overflow.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..423fe1bb62ad78439728b01346ae5c5f540acbee |
| --- /dev/null |
| +++ b/LayoutTests/fast/css-grid-layout/grid-align-justify-overflow.html |
| @@ -0,0 +1,227 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| +<link href="resources/grid.css" rel="stylesheet"> |
| +<script src="../../resources/check-layout.js"></script> |
| +<style> |
| +body { |
| + margin: 0; |
| +} |
| + |
| +.grid { |
| + grid-template-columns: 150px 150px; |
| + grid-template-rows: 120px 120px 120px; |
| + width: -webkit-fit-content; |
| + margin-bottom: 20px; |
| +} |
| + |
| +.cell1 { |
| + width: 180px; |
| + height: 40px; |
| +} |
| + |
| +.cell2 { |
| + width: 50px; |
| + height: 150px; |
| +} |
| + |
| +.cell { |
|
Julien - ping for review
2014/10/23 00:57:24
cell1 -> cellOverflowWidth
cell2 -> cellOverflowHe
jfernandez
2014/10/23 18:09:02
Done.
|
| + width: 50px; |
| + height: 40px; |
| +} |
| + |
| +.alignItemsCenter { |
| + align-items: center; |
| +} |
| + |
| +.alignItemsCenterSafe { |
| + align-items: center safe; |
| +} |
| + |
| +.alignItemsCenterTrue { |
| + align-items: center true; |
| +} |
| + |
| +.alignItemsEnd { |
| + align-items: end; |
| +} |
| + |
| +.alignItemsEndSafe { |
| + align-items: end safe; |
| +} |
| + |
| +.alignItemsEndTrue { |
| + align-items: end true; |
| +} |
| + |
| +.alignSelfCenter { |
| + align-self: center; |
| +} |
| + |
| +.alignSelfCenterSafe { |
| + align-self: center safe; |
| +} |
| + |
| +.alignSelfCenterTrue { |
| + align-self: center true; |
| +} |
| + |
| +.alignSelfEnd { |
| + align-self: end; |
| +} |
| + |
| +.alignSelfEndSafe { |
| + align-self: end safe; |
| +} |
| + |
| +.alignSelfEndTrue { |
| + align-self: end true; |
| +} |
| + |
| +.justifyItemsCenter { |
| + justify-items: center; |
| +} |
| + |
| +.justifyItemsCenterSafe { |
| + justify-items: center safe; |
| +} |
| + |
| +.justifyItemsCenterTrue { |
| + justify-items: center true; |
| +} |
| + |
| +.justifyItemsEnd { |
| + justify-items: end; |
| +} |
| + |
| +.justifyItemsEndSafe { |
| + justify-items: end safe; |
| +} |
| + |
| +.justifyItemsEndTrue { |
| + justify-items: end true; |
| +} |
| + |
| +.justifySelfCenter { |
| + justify-self: center; |
| +} |
| + |
| +.justifySelfCenterSafe { |
| + justify-self: center safe; |
| +} |
| + |
| +.justifySelfCenterTrue { |
| + justify-self: center true; |
| +} |
| + |
| +.justifySelfEnd { |
| + justify-self: end; |
| +} |
| + |
| +.thirdRowFirstColumn { |
| + background-color: green; |
| + grid-column: 1; |
| + grid-row: 3; |
| +} |
| + |
| +.thirdRowSecondColumn { |
| + background-color: red; |
| + grid-column: 2; |
| + grid-row: 3; |
| +} |
| +</style> |
| +</head> |
| +<body onload="checkLayout('.grid')"> |
| + |
| +<p>This test checks that the 'overflow' keyword is applied correctly for 'align' and 'justify' properties.</p> |
| + |
| +<div style="position: relative"> |
| + <div class="grid alignItemsCenter justifyItemsCenter" data-expected-width="300" data-expected-height="360"> |
| + <div class="cell1 firstRowFirstColumn" data-offset-x="-15" data-offset-y="40" data-expected-width="180" data-expected-height="40"></div> |
| + <div class="cell secondRowFirstColumn" data-offset-x="50" data-offset-y="160" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell thirdRowFirstColumn" data-offset-x="50" data-offset-y="280" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell firstRowSecondColumn" data-offset-x="200" data-offset-y="40" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell1 secondRowSecondColumn" data-offset-x="135" data-offset-y="160" data-expected-width="180" data-expected-height="40"></div> |
| + <div class="cell thirdRowSecondColumn" data-offset-x="200" data-offset-y="280" data-expected-width="50" data-expected-height="40"></div> |
| + </div> |
| +</div> |
| + |
| +<div style="position: relative"> |
| + <div class="grid alignItemsCenterTrue justifyItemsCenterTrue" data-expected-width="300" data-expected-height="360"> |
| + <div class="cell2 firstRowFirstColumn" data-offset-x="50" data-offset-y="-15" data-expected-width="50" data-expected-height="150"></div> |
| + <div class="cell secondRowFirstColumn" data-offset-x="50" data-offset-y="160" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell thirdRowFirstColumn" data-offset-x="50" data-offset-y="280" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell firstRowSecondColumn" data-offset-x="200" data-offset-y="40" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell2 secondRowSecondColumn" data-offset-x="200" data-offset-y="105" data-expected-width="50" data-expected-height="150"></div> |
| + <div class="cell thirdRowSecondColumn" data-offset-x="200" data-offset-y="280" data-expected-width="50" data-expected-height="40"></div> |
| + </div> |
| +</div> |
| + |
| +<div style="position: relative"> |
| + <div class="grid alignItemsCenterSafe justifyItemsCenterSafe" data-expected-width="300" data-expected-height="360"> |
| + <div class="cell1 firstRowFirstColumn" data-offset-x="0" data-offset-y="40" data-expected-width="180" data-expected-height="40"></div> |
| + <div class="cell secondRowFirstColumn" data-offset-x="50" data-offset-y="160" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell thirdRowFirstColumn" data-offset-x="50" data-offset-y="280" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell firstRowSecondColumn" data-offset-x="200" data-offset-y="40" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell1 secondRowSecondColumn" data-offset-x="150" data-offset-y="160" data-expected-width="180" data-expected-height="40"></div> |
| + <div class="cell thirdRowSecondColumn" data-offset-x="200" data-offset-y="280" data-expected-width="50" data-expected-height="40"></div> |
| + </div> |
| +</div> |
| + |
| +<div style="position: relative"> |
| + <div class="grid alignItemsCenterSafe justifyItemsCenterSafe" data-expected-width="300" data-expected-height="360"> |
| + <div class="cell2 firstRowFirstColumn" data-offset-x="50" data-offset-y="0" data-expected-width="50" data-expected-height="150"></div> |
| + <div class="cell secondRowFirstColumn" data-offset-x="50" data-offset-y="160" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell thirdRowFirstColumn" data-offset-x="50" data-offset-y="280" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell firstRowSecondColumn" data-offset-x="200" data-offset-y="40" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell2 secondRowSecondColumn alignSelfCenterSafe justifySelfCenterSafe" data-offset-x="200" data-offset-y="120" data-expected-width="50" data-expected-height="150"></div> |
| + <div class="cell thirdRowSecondColumn" data-offset-x="200" data-offset-y="280" data-expected-width="50" data-expected-height="40"></div> |
| + </div> |
| +</div> |
| + |
| +<div style="position: relative"> |
| + <div class="grid alignItemsEnd justifyItemsEnd" data-expected-width="300" data-expected-height="360"> |
| + <div class="cell1 firstRowFirstColumn" data-offset-x="-30" data-offset-y="80" data-expected-width="180" data-expected-height="40"></div> |
| + <div class="cell secondRowFirstColumn justifySelfCenter" data-offset-x="50" data-offset-y="200" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell thirdRowFirstColumn" data-offset-x="100" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell firstRowSecondColumn" data-offset-x="250" data-offset-y="80" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell1 secondRowSecondColumn" data-offset-x="120" data-offset-y="200" data-expected-width="180" data-expected-height="40"></div> |
| + <div class="cell thirdRowSecondColumn" data-offset-x="250" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> |
| + </div> |
| +</div> |
| + |
| +<div style="position: relative"> |
| + <div class="grid alignItemsEndTrue justifyItemsEndTrue" data-expected-width="300" data-expected-height="360"> |
| + <div class="cell2 firstRowFirstColumn" data-offset-x="100" data-offset-y="-30" data-expected-width="50" data-expected-height="150"></div> |
| + <div class="cell secondRowFirstColumn" data-offset-x="100" data-offset-y="200" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell thirdRowFirstColumn" data-offset-x="100" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell firstRowSecondColumn alignSelfCenter" data-offset-x="250" data-offset-y="40" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell2 secondRowSecondColumn" data-offset-x="250" data-offset-y="90" data-expected-width="50" data-expected-height="150"></div> |
| + <div class="cell thirdRowSecondColumn" data-offset-x="250" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> |
| + </div> |
| +</div> |
| + |
| +<div style="position: relative"> |
| + <div class="grid alignItemsEndSafe justifyItemsEndSafe" data-expected-width="300" data-expected-height="360"> |
| + <div class="cell1 firstRowFirstColumn" data-offset-x="0" data-offset-y="80" data-expected-width="180" data-expected-height="40"></div> |
| + <div class="cell secondRowFirstColumn justifySelfCenterTrue" data-offset-x="50" data-offset-y="200" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell thirdRowFirstColumn" data-offset-x="100" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell firstRowSecondColumn" data-offset-x="250" data-offset-y="80" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell1 secondRowSecondColumn" data-offset-x="150" data-offset-y="200" data-expected-width="180" data-expected-height="40"></div> |
| + <div class="cell thirdRowSecondColumn" data-offset-x="250" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> |
| + </div> |
| +</div> |
| + |
| +<div style="position: relative"> |
| + <div class="grid alignItemsEndSafe justifyItemsEndSafe" data-expected-width="300" data-expected-height="360"> |
| + <div class="cell2 firstRowFirstColumn" data-offset-x="100" data-offset-y="0" data-expected-width="50" data-expected-height="150"></div> |
| + <div class="cell secondRowFirstColumn" data-offset-x="100" data-offset-y="200" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell thirdRowFirstColumn" data-offset-x="100" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell firstRowSecondColumn alignSelfCenterTrue" data-offset-x="250" data-offset-y="40" data-expected-width="50" data-expected-height="40"></div> |
| + <div class="cell2 secondRowSecondColumn" data-offset-x="250" data-offset-y="120" data-expected-width="50" data-expected-height="150"></div> |
| + <div class="cell thirdRowSecondColumn" data-offset-x="250" data-offset-y="320" data-expected-width="50" data-expected-height="40"></div> |
| + </div> |
| +</div> |
| + |
| +</body> |
| +</html> |