OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <style> | 3 <style> |
4 body { | 4 body { |
5 margin: 0; | 5 margin: 0; |
6 } | 6 } |
7 .flexbox { | 7 .flexbox { |
8 display: -webkit-flex; | 8 display: flex; |
9 position: relative; | 9 position: relative; |
10 -webkit-flex-flow: column; | 10 flex-flow: column; |
11 } | 11 } |
12 .flexbox > div { | 12 .flexbox > div { |
13 height: 0; | 13 height: 0; |
14 } | 14 } |
15 .flexbox > div > div { | 15 .flexbox > div > div { |
16 width: 20px; | 16 width: 20px; |
17 height: 20px; | 17 height: 20px; |
18 line-height: 0px; | 18 line-height: 0px; |
19 background-color: blue; | 19 background-color: blue; |
20 } | 20 } |
21 </style> | 21 </style> |
22 <script src="../../resources/check-layout.js"></script> | 22 <script src="../../resources/check-layout.js"></script> |
23 <body onload="checkLayout('.flexbox')"> | 23 <body onload="checkLayout('.flexbox')"> |
24 | 24 |
25 <div data-expected-height=0 data-offset-x=0 data-offset-y=0 class="flexbox"> | 25 <div data-expected-height=0 data-offset-x=0 data-offset-y=0 class="flexbox"> |
26 <div data-expected-height=0 data-offset-x=0 data-offset-y=0> | 26 <div data-expected-height=0 data-offset-x=0 data-offset-y=0> |
27 <div data-expected-height=20 data-offset-x=0 data-offset-y=0></div> | 27 <div data-expected-height=20 data-offset-x=0 data-offset-y=0></div> |
28 </div> | 28 </div> |
29 </div> | 29 </div> |
30 | 30 |
31 </body> | 31 </body> |
32 </html> | 32 </html> |
OLD | NEW |