OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 .test-row { | 5 .test-row { |
6 display: -webkit-flex; | 6 display: flex; |
7 margin-bottom: 5px; | 7 margin-bottom: 5px; |
8 } | 8 } |
9 .test-row > div { | 9 .test-row > div { |
10 -webkit-flex: none; | 10 flex: none; |
11 } | 11 } |
12 | 12 |
13 .container { | 13 .container { |
14 margin-right: 5px; | 14 margin-right: 5px; |
15 border: 5px solid lightgreen; | 15 border: 5px solid lightgreen; |
16 width: 100px; | 16 width: 100px; |
17 } | 17 } |
18 | 18 |
19 .horizontal-tb { | 19 .horizontal-tb { |
20 -webkit-writing-mode: horizontal-tb; | 20 -webkit-writing-mode: horizontal-tb; |
21 } | 21 } |
22 | 22 |
23 .horizontal-bt { | 23 .horizontal-bt { |
24 -webkit-writing-mode: horizontal-bt; | 24 -webkit-writing-mode: horizontal-bt; |
25 } | 25 } |
26 | 26 |
27 .vertical-rl { | 27 .vertical-rl { |
28 -webkit-writing-mode: vertical-rl; | 28 -webkit-writing-mode: vertical-rl; |
29 } | 29 } |
30 | 30 |
31 .vertical-lr { | 31 .vertical-lr { |
32 -webkit-writing-mode: vertical-lr; | 32 -webkit-writing-mode: vertical-lr; |
33 } | 33 } |
34 | 34 |
35 .row { | 35 .row { |
36 -webkit-flex-direction: row; | 36 flex-direction: row; |
37 } | 37 } |
38 | 38 |
39 .row-reverse { | 39 .row-reverse { |
40 -webkit-flex-direction: row-reverse; | 40 flex-direction: row-reverse; |
41 } | 41 } |
42 | 42 |
43 .column { | 43 .column { |
44 -webkit-flex-direction: column; | 44 flex-direction: column; |
45 } | 45 } |
46 | 46 |
47 .column-reverse { | 47 .column-reverse { |
48 -webkit-flex-direction: column-reverse; | 48 flex-direction: column-reverse; |
49 } | 49 } |
50 | 50 |
51 .flexbox { | 51 .flexbox { |
52 border: 0 solid pink; | 52 border: 0 solid pink; |
53 display: -webkit-flex; | 53 display: flex; |
54 height: 100px; | 54 height: 100px; |
55 width: 100px; | 55 width: 100px; |
56 overflow: auto; | 56 overflow: auto; |
57 } | 57 } |
58 | 58 |
59 .flexbox > div { | 59 .flexbox > div { |
60 width: 200px; | 60 width: 200px; |
61 height: 200px; | 61 height: 200px; |
62 background: -webkit-radial-gradient(center, ellipse cover, rgba(30,87,153,1)
0%,rgba(89,148,202,1) 62%,rgba(95,154,207,0.7) 68%,rgba(125,185,232,0) 100%); | 62 background: -webkit-radial-gradient(center, ellipse cover, rgba(30,87,153,1)
0%,rgba(89,148,202,1) 62%,rgba(95,154,207,0.7) 68%,rgba(125,185,232,0) 100%); |
63 -webkit-flex: none; | 63 flex: none; |
64 } | 64 } |
65 | 65 |
66 </style> | 66 </style> |
67 </head> | 67 </head> |
68 <body> | 68 <body> |
69 <p>Scrollbars should work in all the flexboxes.</p> | 69 <p>Scrollbars should work in all the flexboxes.</p> |
70 </body> | 70 </body> |
71 <script> | 71 <script> |
72 var writingModes = ['horizontal-tb', 'horizontal-bt', 'vertical-rl', 'vertical-l
r']; | 72 var writingModes = ['horizontal-tb', 'horizontal-bt', 'vertical-rl', 'vertical-l
r']; |
73 var flexDirections = ['row', 'column', 'row-reverse', 'column-reverse']; | 73 var flexDirections = ['row', 'column', 'row-reverse', 'column-reverse']; |
(...skipping 11 matching lines...) Expand all Loading... |
85 "</div>"; | 85 "</div>"; |
86 }); | 86 }); |
87 testContents += "</div>"; | 87 testContents += "</div>"; |
88 }); | 88 }); |
89 | 89 |
90 document.body.innerHTML += testContents; | 90 document.body.innerHTML += testContents; |
91 | 91 |
92 </script> | 92 </script> |
93 </body> | 93 </body> |
94 </html> | 94 </html> |
OLD | NEW |