Chromium Code Reviews| Index: LayoutTests/css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html |
| diff --git a/LayoutTests/css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html b/LayoutTests/css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..07b818016efad20a1f6705bd1bc0066d43a29c31 |
| --- /dev/null |
| +++ b/LayoutTests/css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html |
| @@ -0,0 +1,36 @@ |
| +<!DOCTYPE html> |
| +<style> |
| +.flexbox-horizontal { |
| + display: flex; |
| + height: 100px; |
| + background-color: purple; |
| + position: relative; |
| +} |
| + |
| +.flexbox-vertical { |
| + display: flex; |
| + width: 100px; |
| + background-color: purple; |
| + position: relative; |
| + -webkit-writing-mode: vertical-rl; |
| +} |
| + |
| +.flex-item { |
| + flex: 1; |
| + background-color: red; |
| +} |
| +</style> |
| +<script src="../../resources/check-layout.js"></script> |
| +<body onload="checkLayout('.flexbox-horizontal'); checkLayout('.flexbox-vertical')"> |
| +<div class="flexbox-horizontal"> |
| + <div data-expected-height="100" class="flex-item"> |
| + <div data-expected-height="70" style="height: 70%; background-color:lime">Horizontal Writing Mode</div> |
|
tony
2014/06/19 16:37:46
Please add tests with padding and borders. Also a
harpreet.sk
2014/06/20 14:54:32
Done.
|
| + </div> |
| +</div> |
| + |
| +<div class="flexbox-vertical"> |
| + <div data-expected-width="100" class="flex-item"> |
| + <div data-expected-width="50" style="width: 50%; background-color:lime">Vertical Writing Mode</div> |
| + </div> |
| +</div> |
| +</body> |