OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <link href="resources/flexbox.css" rel="stylesheet"> |
| 3 <style> |
| 4 .container { |
| 5 height: 100px; |
| 6 width: 100px; |
| 7 border: 1px solid black; |
| 8 } |
| 9 |
| 10 .child-flex-grow-0-5 { |
| 11 background-color: green; |
| 12 flex-grow: 0.5; |
| 13 } |
| 14 |
| 15 .child-flex-grow-0-25 { |
| 16 background-color: red; |
| 17 flex-grow: 0.25; |
| 18 } |
| 19 |
| 20 .basis { |
| 21 flex-basis: 30px; |
| 22 } |
| 23 |
| 24 .vertical { |
| 25 -webkit-writing-mode: vertical-rl; |
| 26 } |
| 27 </style> |
| 28 <script src="../../resources/check-layout.js"></script> |
| 29 <body onload="checkLayout('.flexbox');"> |
| 30 |
| 31 <div class="flexbox container"> |
| 32 <div class="child-flex-grow-0-5" data-expected-width="50"></div> |
| 33 </div> |
| 34 |
| 35 <div class="flexbox container"> |
| 36 <div class="child-flex-grow-0-5" data-expected-width="50"></div> |
| 37 <div class="child-flex-grow-0-25" data-expected-width="25"></div> |
| 38 </div> |
| 39 |
| 40 <div class="flexbox container column"> |
| 41 <div class="child-flex-grow-0-5" data-expected-height="50"></div> |
| 42 <div class="child-flex-grow-0-25" data-expected-height="25"></div> |
| 43 </div> |
| 44 |
| 45 <div class="flexbox container column vertical"> |
| 46 <div class="child-flex-grow-0-5 " data-expected-width="50"></div> |
| 47 <div class="child-flex-grow-0-25 " data-expected-width="25"></div> |
| 48 </div> |
| 49 |
| 50 <div class="flexbox container vertical"> |
| 51 <div class="child-flex-grow-0-5 " data-expected-height="50"></div> |
| 52 <div class="child-flex-grow-0-25 " data-expected-height="25"></div> |
| 53 </div> |
| 54 |
| 55 <div class="flexbox container"> |
| 56 <div class="child-flex-grow-0-5 basis" data-expected-width="50"></div> |
| 57 <div class="child-flex-grow-0-25 basis" data-expected-width="40"></div> |
| 58 </div> |
| 59 |
| 60 <div class="flexbox container column"> |
| 61 <div class="child-flex-grow-0-5 basis" data-expected-height="50"></div> |
| 62 <div class="child-flex-grow-0-25 basis" data-expected-height="40"></div> |
| 63 </div> |
| 64 |
| 65 <div class="flexbox container vertical"> |
| 66 <div class="child-flex-grow-0-5 basis" data-expected-height="50"></div> |
| 67 <div class="child-flex-grow-0-25 basis" data-expected-height="40"></div> |
| 68 </div> |
| 69 |
| 70 <div class="flexbox container column vertical"> |
| 71 <div class="child-flex-grow-0-5 basis" data-expected-width="50"></div> |
| 72 <div class="child-flex-grow-0-25 basis" data-expected-width="40"></div> |
| 73 </div> |
| 74 </body> |
OLD | NEW |