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 | 7 |
8 .title { | 8 .title { |
9 margin-top: 1em; | 9 margin-top: 1em; |
10 } | 10 } |
11 | 11 |
12 .flexbox { | 12 .flexbox { |
13 display: -webkit-flex; | 13 display: flex; |
14 background-color: #aaa; | 14 background-color: #aaa; |
15 position: relative; | 15 position: relative; |
16 } | 16 } |
17 .flexbox div { | 17 .flexbox div { |
18 border: 0; | 18 border: 0; |
19 -webkit-flex: none; | 19 flex: none; |
20 } | 20 } |
21 | 21 |
22 .horizontal-tb { | 22 .horizontal-tb { |
23 -webkit-writing-mode: horizontal-tb; | 23 -webkit-writing-mode: horizontal-tb; |
24 } | 24 } |
25 .horizontal-bt { | 25 .horizontal-bt { |
26 -webkit-writing-mode: horizontal-bt; | 26 -webkit-writing-mode: horizontal-bt; |
27 } | 27 } |
28 .vertical-rl { | 28 .vertical-rl { |
29 -webkit-writing-mode: vertical-rl; | 29 -webkit-writing-mode: vertical-rl; |
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-flow: row; | 36 flex-flow: row; |
37 } | 37 } |
38 .row-reverse { | 38 .row-reverse { |
39 -webkit-flex-flow: row-reverse; | 39 flex-flow: row-reverse; |
40 } | 40 } |
41 .column { | 41 .column { |
42 -webkit-flex-flow: column; | 42 flex-flow: column; |
43 } | 43 } |
44 .column-reverse { | 44 .column-reverse { |
45 -webkit-flex-flow: column-reverse; | 45 flex-flow: column-reverse; |
46 } | 46 } |
47 | 47 |
48 .flexbox :nth-child(1) { | 48 .flexbox :nth-child(1) { |
49 background-color: blue; | 49 background-color: blue; |
50 } | 50 } |
51 .flexbox :nth-child(2) { | 51 .flexbox :nth-child(2) { |
52 background-color: green; | 52 background-color: green; |
53 } | 53 } |
54 | 54 |
55 .rtl { | 55 .rtl { |
56 direction: rtl; | 56 direction: rtl; |
57 } | 57 } |
58 .ltr { | 58 .ltr { |
59 direction: ltr; | 59 direction: ltr; |
60 } | 60 } |
61 | 61 |
62 .justify-content-flex-start { | 62 .justify-content-flex-start { |
63 -webkit-justify-content: flex-start; | 63 justify-content: flex-start; |
64 } | 64 } |
65 .justify-content-flex-end { | 65 .justify-content-flex-end { |
66 -webkit-justify-content: flex-end; | 66 justify-content: flex-end; |
67 } | 67 } |
68 .justify-content-center { | 68 .justify-content-center { |
69 -webkit-justify-content: center; | 69 justify-content: center; |
70 } | 70 } |
71 .justify-content-space-between { | 71 .justify-content-space-between { |
72 -webkit-justify-content: space-between; | 72 justify-content: space-between; |
73 } | 73 } |
74 .justify-content-space-around { | 74 .justify-content-space-around { |
75 -webkit-justify-content: space-around; | 75 justify-content: space-around; |
76 } | 76 } |
77 </style> | 77 </style> |
78 <script src="../../resources/check-layout.js"></script> | 78 <script src="../../resources/check-layout.js"></script> |
79 <body onload="checkLayout('.flexbox')"> | 79 <body onload="checkLayout('.flexbox')"> |
80 <script> | 80 <script> |
81 var expectations = { | 81 var expectations = { |
82 'horizontal-tb': { | 82 'horizontal-tb': { |
83 'row': { | 83 'row': { |
84 'ltr': { | 84 'ltr': { |
85 'flex-start': { | 85 'flex-start': { |
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 | 877 |
878 document.body.appendChild(flexbox); | 878 document.body.appendChild(flexbox); |
879 }) | 879 }) |
880 }) | 880 }) |
881 }) | 881 }) |
882 }) | 882 }) |
883 | 883 |
884 </script> | 884 </script> |
885 | 885 |
886 </body> | 886 </body> |
OLD | NEW |