| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <style> | 3 <style> |
| 4 .flexbox { | 4 .flexbox { |
| 5 display: -webkit-flex; | 5 display: flex; |
| 6 background-color: #aaa; | 6 background-color: #aaa; |
| 7 float: left; | 7 float: left; |
| 8 } | 8 } |
| 9 .flexbox > div { | 9 .flexbox > div { |
| 10 margin: 2px 13px 8px 17px; | 10 margin: 2px 13px 8px 17px; |
| 11 -webkit-flex: none; | 11 flex: none; |
| 12 } | 12 } |
| 13 .flexbox > div:not(.nested) { | 13 .flexbox > div:not(.nested) { |
| 14 width: 10px; | 14 width: 10px; |
| 15 height: 15px; | 15 height: 15px; |
| 16 } | 16 } |
| 17 .flexbox > .nested > div:not(.nested) { | 17 .flexbox > .nested > div:not(.nested) { |
| 18 width: 20px; | 18 width: 20px; |
| 19 height: 30px; | 19 height: 30px; |
| 20 } | 20 } |
| 21 .flexbox > .nested > .nested > div { | 21 .flexbox > .nested > .nested > div { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 36 background-color: purple; | 36 background-color: purple; |
| 37 } | 37 } |
| 38 .flexbox > div > div > :nth-child(1) { | 38 .flexbox > div > div > :nth-child(1) { |
| 39 background-color: red; | 39 background-color: red; |
| 40 } | 40 } |
| 41 .flexbox > div > div > :nth-child(2) { | 41 .flexbox > div > div > :nth-child(2) { |
| 42 background-color: yellow; | 42 background-color: yellow; |
| 43 } | 43 } |
| 44 | 44 |
| 45 .nested { | 45 .nested { |
| 46 display: -webkit-flex; | 46 display: flex; |
| 47 background-color: #ddd; | 47 background-color: #ddd; |
| 48 } | 48 } |
| 49 .horizontal-tb { | 49 .horizontal-tb { |
| 50 -webkit-writing-mode: horizontal-tb; | 50 -webkit-writing-mode: horizontal-tb; |
| 51 } | 51 } |
| 52 .vertical-lr { | 52 .vertical-lr { |
| 53 -webkit-writing-mode: vertical-lr; | 53 -webkit-writing-mode: vertical-lr; |
| 54 } | 54 } |
| 55 .column { | 55 .column { |
| 56 -webkit-flex-flow: column; | 56 flex-flow: column; |
| 57 } | 57 } |
| 58 .clear { | 58 .clear { |
| 59 clear: both; | 59 clear: both; |
| 60 } | 60 } |
| 61 </style> | 61 </style> |
| 62 <script src="../../resources/check-layout.js"></script> | 62 <script src="../../resources/check-layout.js"></script> |
| 63 <body onload="checkLayout('.flexbox')"> | 63 <body onload="checkLayout('.flexbox')"> |
| 64 | 64 |
| 65 <div class="flexbox" data-expected-height=70 data-expect-width=90> | 65 <div class="flexbox" data-expected-height=70 data-expect-width=90> |
| 66 <div class="column nested" data-expected-height=60 data-expect-width=20> | 66 <div class="column nested" data-expected-height=60 data-expect-width=20> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 <div class="nested vertical-lr" data-expected-height=60 data-expect-width=2
0> | 105 <div class="nested vertical-lr" data-expected-height=60 data-expect-width=2
0> |
| 106 <div></div> | 106 <div></div> |
| 107 <div></div> | 107 <div></div> |
| 108 </div> | 108 </div> |
| 109 <div></div> | 109 <div></div> |
| 110 </div> | 110 </div> |
| 111 <br class=clear> | 111 <br class=clear> |
| 112 | 112 |
| 113 </body> | 113 </body> |
| 114 </html> | 114 </html> |
| OLD | NEW |