| Index: third_party/WebKit/LayoutTests/fast/css-grid-layout/percent-resolution-grid-item-children.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/percent-resolution-grid-item-children.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/percent-resolution-grid-item-children.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2b6a5868dc07a5bc06514504c0806b01b4a58856
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/percent-resolution-grid-item-children.html
|
| @@ -0,0 +1,89 @@
|
| +<!DOCTYPE html>
|
| +<link href="resources/grid.css" rel="stylesheet">
|
| +<style>
|
| +
|
| +.grid {
|
| + grid: 100px / 200px;
|
| +}
|
| +
|
| +.fixedSize350 {
|
| + width: 350px;
|
| + height: 350px;
|
| +}
|
| +
|
| +.percentSize100 {
|
| + width: 100%;
|
| + height: 100%;
|
| +}
|
| +
|
| +.percentSize50 {
|
| + width: 50%;
|
| + height: 50%;
|
| +}
|
| +
|
| +</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 percentages are properly resolved for grid items' children.</p>
|
| +
|
| +<div class="grid">
|
| + <div data-expected-width="200" data-expected-height="100">
|
| + <div class="percentSize100" data-expected-width="200" data-expected-height="100">
|
| + </div>
|
| + </div>
|
| +</div>
|
| +
|
| +<div class="grid">
|
| + <div data-expected-width="200" data-expected-height="100">
|
| + <div class="percentSize50" data-expected-width="100" data-expected-height="50">
|
| + </div>
|
| + </div>
|
| +</div>
|
| +
|
| +<div class="grid">
|
| + <div class="fixedSize350" data-expected-width="350" data-expected-height="350">
|
| + <div class="percentSize100" data-expected-width="350" data-expected-height="350">
|
| + </div>
|
| + </div>
|
| +</div>
|
| +
|
| +<div class="grid">
|
| + <div class="fixedSize350" data-expected-width="350" data-expected-height="350">
|
| + <div class="percentSize50" data-expected-width="175" data-expected-height="175">
|
| + </div>
|
| + </div>
|
| +</div>
|
| +
|
| +<div class="grid">
|
| + <div class="percentSize100" data-expected-width="200" data-expected-height="100">
|
| + <div class="percentSize100" data-expected-width="200" data-expected-height="100">
|
| + </div>
|
| + </div>
|
| +</div>
|
| +
|
| +<div class="grid">
|
| + <div class="percentSize100" data-expected-width="200" data-expected-height="100">
|
| + <div class="percentSize50" data-expected-width="100" data-expected-height="50">
|
| + </div>
|
| + </div>
|
| +</div>
|
| +
|
| +<div class="grid">
|
| + <div class="percentSize50" data-expected-width="100" data-expected-height="50">
|
| + <div class="percentSize100" data-expected-width="100" data-expected-height="50">
|
| + </div>
|
| + </div>
|
| +</div>
|
| +
|
| +<div class="grid">
|
| + <div class="percentSize50" data-expected-width="100" data-expected-height="50">
|
| + <div class="percentSize50" data-expected-width="50" data-expected-height="25">
|
| + </div>
|
| + </div>
|
| +</div>
|
| +
|
| +</body>
|
|
|