OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 .flexbox-horizontal { |
| 4 display: flex; |
| 5 height: 100px; |
| 6 background-color: purple; |
| 7 position: relative; |
| 8 } |
| 9 |
| 10 .flexbox-vertical { |
| 11 display: flex; |
| 12 width: 100px; |
| 13 background-color: purple; |
| 14 position: relative; |
| 15 -webkit-writing-mode: vertical-rl; |
| 16 } |
| 17 |
| 18 .flex-item { |
| 19 flex: 1; |
| 20 background-color: red; |
| 21 } |
| 22 </style> |
| 23 <script src="../../resources/check-layout.js"></script> |
| 24 <body onload="checkLayout('.flexbox-horizontal'); checkLayout('.flexbox-vertical
')"> |
| 25 <div class="flexbox-horizontal"> |
| 26 <div data-expected-height="100" class="flex-item"> |
| 27 <div data-expected-height="70" style="height: 70%; background-color:lime">Ho
rizontal Writing Mode</div> |
| 28 </div> |
| 29 </div> |
| 30 |
| 31 <div class="flexbox-vertical"> |
| 32 <div data-expected-width="100" class="flex-item"> |
| 33 <div data-expected-width="50" style="width: 50%; background-color:lime">Vert
ical Writing Mode</div> |
| 34 </div> |
| 35 </div> |
| 36 </body> |
OLD | NEW |