OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <link href="resources/flexbox.css" rel="stylesheet"> |
| 3 <style> |
| 4 .horizontal { |
| 5 height: 50px; |
| 6 background-color: purple; |
| 7 position: relative; |
| 8 } |
| 9 .vertical { |
| 10 width: 50px; |
| 11 height: 10px; |
| 12 background-color: purple; |
| 13 position: relative; |
| 14 writing-mode: vertical-rl; |
| 15 } |
| 16 .flex-one { |
| 17 background-color: red; |
| 18 } |
| 19 </style> |
| 20 <script src="../../resources/testharness.js"></script> |
| 21 <script src="../../resources/testharnessreport.js"></script> |
| 22 <script src="../../resources/check-layout-th.js"></script> |
| 23 <script> |
| 24 function changeHeight() |
| 25 { |
| 26 document.getElementById('dynamicHorizontalChild').style.height = "90%"; |
| 27 document.getElementById('dynamicVerticalChild').style.width = "30%"; |
| 28 checkLayout('.flexbox'); |
| 29 } |
| 30 </script> |
| 31 <body onload="changeHeight()"> |
| 32 <div class="flexbox horizontal"> |
| 33 <div data-expected-height="50" class="flex-one"> |
| 34 <div data-expected-height="35" style="height: 70%; background-color: lime"><
/div> |
| 35 </div> |
| 36 </div> |
| 37 <div class="flexbox horizontal"> |
| 38 <div data-expected-height="50" class="flex-one"> |
| 39 <div id="dynamicHorizontalChild" data-expected-height="45" style="height: 70
%; background-color: lime"></div> |
| 40 </div> |
| 41 </div> |
| 42 <div class="flexbox horizontal"> |
| 43 <div data-expected-height="50" class="flex-one" style="padding: 10px; border:
2px solid black"> |
| 44 <div data-expected-height="18" style="height: 70%; background-color: lime"><
/div> |
| 45 </div> |
| 46 </div> |
| 47 <div class="flexbox horizontal"> |
| 48 <img data-expected-height="25" style="max-height: 50%" src="../images/resource
s/green-10.png" /> |
| 49 </div> |
| 50 <div class="flexbox horizontal"> |
| 51 <div data-expected-height="25" class="flex-one" style="max-height:50%"> |
| 52 <div data-expected-height="13" style="height: 50%; background-color: lime"><
/div> |
| 53 </div> |
| 54 </div> |
| 55 <div class="flexbox vertical"> |
| 56 <div data-expected-width="50" class="flex-one"> |
| 57 <div data-expected-width="25" style="width: 50%; background-color: lime"></d
iv> |
| 58 </div> |
| 59 </div> |
| 60 <div class="flexbox vertical"> |
| 61 <div data-expected-width="50" class="flex-one"> |
| 62 <div id="dynamicVerticalChild" data-expected-width="15" style="width: 50%; b
ackground-color: lime"></div> |
| 63 </div> |
| 64 </div> |
| 65 <div class="flexbox vertical"> |
| 66 <div data-expected-width="50" class="flex-one" style="padding: 10px; border: 2
px solid black"> |
| 67 <div data-expected-width="13" style="width: 50%; background-color: lime"></d
iv> |
| 68 </div> |
| 69 </div> |
| 70 <div class="flexbox vertical"> |
| 71 <img data-expected-width="25" style="max-width: 50%" src="../images/resources/
green-10.png" /> |
| 72 </div> |
| 73 <div class="flexbox vertical"> |
| 74 <div data-expected-width="25" class="flex-one" style="max-width: 50%"> |
| 75 <div data-expected-width="13" style="width: 50%; background-color: lime"></d
iv> |
| 76 </div> |
| 77 </div> |
| 78 </body> |
OLD | NEW |