Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-track-sizing-with-percentages-and-orthogonal-flows.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-track-sizing-with-percentages-and-orthogonal-flows.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-track-sizing-with-percentages-and-orthogonal-flows.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a07b39d05d5464e55157a61aafd74dd8c5f21ff5 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-track-sizing-with-percentages-and-orthogonal-flows.html |
| @@ -0,0 +1,71 @@ |
| +<!DOCTYPE html> |
| +<link href="resources/grid.css" rel="stylesheet"> |
| +<link href="resources/grid-alignment.css" rel="stylesheet"> |
| +<link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel="stylesheet"> |
| +<link href="../css-intrinsic-dimensions/resources/height-keyword-classes.css" rel="stylesheet"> |
| +<style> |
| +body { |
| + margin: 0; |
| +} |
| + |
| +.container { |
| + position: relative; |
| +} |
| + |
| +.grid { |
| + font: 10px/1 Ahem; |
| + grid-template-columns: 100px 25%; |
| + grid-template-rows: 50% 150px; |
| +} |
| +.item { |
| + width: 100%; |
| + height: 100%; |
| +} |
|
svillar
2016/06/02 14:39:40
Do we really need this? We stretch by default.
jfernandez
2016/06/02 21:39:25
Yes, we need it because we don't allow (yet) stret
|
| +</style> |
| +<script src="../../resources/testharness.js"></script> |
| +<script src="../../resources/testharnessreport.js"></script> |
| +<script src="../../resources/check-layout-th.js"></script> |
| +<body onload="checkLayout('.grid')"> |
| +<div id="log"></div> |
| +<p>This test checks that grid tracks are correctly sized when using percentage lengths and orthogonal flows.</p> |
| + |
| +<p>HORIZONTAL-TB container with VERTICAL-LR items.</p> |
| +<div class="container"> |
| + <div class="grid itemsStart contentStart fit-content" data-expected-width="120" data-expected-height="260"> |
| + <div class="item firstRowFirstColumn verticalLR" data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="110">X X X</div> |
| + <div class="item firstRowSecondColumn verticalLR" data-offset-x="100" data-offset-y="0" data-expected-width="20" data-expected-height="110">X X X X X X</div> |
| + <div class="item secondRowFirstColumn verticalLR" data-offset-x="0" data-offset-y="110" data-expected-width="100" data-expected-height="150">X X X X X X</div> |
| + <div class="item secondRowSecondColumn verticalLR" data-offset-x="100" data-offset-y="110" data-expected-width="20" data-expected-height="150">X X X X X X X X X X X X</div> |
| + </div> |
| +</div> |
| + |
| +<p>HORIZONTAL-TB container with VERTICAL-RL items.</p> |
| +<div class="container"> |
| + <div class="grid itemsStart contentStart fit-content" data-expected-width="120" data-expected-height="260"> |
| + <div class="item firstRowFirstColumn verticalRL" data-offset-x="0" data-offset-y="0" data-expected-width="100" data-expected-height="110">X X X</div> |
| + <div class="item firstRowSecondColumn verticalRL" data-offset-x="100" data-offset-y="0" data-expected-width="20" data-expected-height="110">X X X X X X</div> |
| + <div class="item secondRowFirstColumn verticalRL" data-offset-x="0" data-offset-y="110" data-expected-width="100" data-expected-height="150">X X X X X X</div> |
| + <div class="item secondRowSecondColumn verticalRL" data-offset-x="100" data-offset-y="110" data-expected-width="20" data-expected-height="150">X X X X X X X X X X X X</div> |
| + </div> |
| +</div> |
| + |
| +<p>VERTICAL-LR container with HORIZONTAL-TB items.</p> |
| +<div class="container"> |
| + <div class="grid itemsStart contentStart verticalLR fit-content" data-expected-width="260" data-expected-height="120"> |
| + <div class="item firstRowFirstColumn horizontalTB" data-offset-x="0" data-offset-y="0" data-expected-width="110" data-expected-height="100">X X X</div> |
| + <div class="item firstRowSecondColumn horizontalTB" data-offset-x="0" data-offset-y="100" data-expected-width="110" data-expected-height="20">X X X X X X</div> |
| + <div class="item secondRowFirstColumn horizontalTB" data-offset-x="110" data-offset-y="0" data-expected-width="150" data-expected-height="100">X X X X X X</div> |
| + <div class="item secondRowSecondColumn horizontalTB" data-offset-x="110" data-offset-y="100" data-expected-width="150" data-expected-height="20">X X X X X X X X X X X X</div> |
| + </div> |
| +</div> |
| + |
| +<p>VERTICAL-RL container with HORIZONTAL-TB items.</p> |
| +<div class="container"> |
| + <div class="grid itemsStart contentStart verticalRL fit-content" data-expected-width="260" data-expected-height="120"> |
| + <div class="item firstRowFirstColumn horizontalTB" data-offset-x="150" data-offset-y="0" data-expected-width="110" data-expected-height="100">X X X</div> |
| + <div class="item firstRowSecondColumn horizontalTB" data-offset-x="150" data-offset-y="100" data-expected-width="110" data-expected-height="20">X X X X X X</div> |
| + <div class="item secondRowFirstColumn horizontalTB" data-offset-x="0" data-offset-y="0" data-expected-width="150" data-expected-height="100">X X X X X X</div> |
| + <div class="item secondRowSecondColumn horizontalTB" data-offset-x="0" data-offset-y="100" data-expected-width="150" data-expected-height="20">X X X X X X X X X X X X</div> |
| + </div> |
| +</div> |
| +</body> |