tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / css3 / flexbox / flex-flow.html
1 <!DOCTYPE html>
2 <html>
3 <style>
4 body {
5     margin: 0;
6 }
7 .flexbox {
8     width: 600px;
9     display: -webkit-flexbox;
10     background-color: grey;
11 }
12 .flexbox > div {
13     height: 20px;
14     width: 20px;
15     border: 0;
16 }
17
18 .rtl {
19     direction: rtl;
20 }
21
22 .bt {
23     -webkit-writing-mode: horizontal-bt;
24 }
25
26 .vertical-rl, .vertical-lr, .column, .column-reverse {
27     height: 600px;
28 }
29
30 .vertical-rl {
31     -webkit-writing-mode: vertical-rl;
32 }
33
34 .vertical-lr {
35     -webkit-writing-mode: vertical-lr;
36 }
37
38 .row-reverse {
39     -webkit-flex-flow: row-reverse;
40 }
41
42 .column {
43     -webkit-flex-flow: column;
44 }
45
46 .column-reverse {
47     -webkit-flex-flow: column-reverse;
48 }
49
50 .flexbox > :nth-child(1) {
51     background-color: blue;
52 }
53 .flexbox > :nth-child(2) {
54     background-color: green;
55 }
56 .flexbox > :nth-child(3) {
57     background-color: red;
58 }
59
60 .flexbox > div > div {
61     background-color: orange;
62     height: 10px;
63 }
64 </style>
65 <script>
66 if (window.layoutTestController)
67     layoutTestController.dumpAsText();
68 </script>
69 <script src="resources/flexbox.js"></script>
70 <body onload="checkFlexBoxen()">
71
72 <div class="flexbox">
73   <div data-expected-width="75" data-offset-x="0" style="width: -webkit-flex(1 0 0); margin: 0 auto;"></div>
74   <div data-expected-width="350" data-offset-x="75" style="width: -webkit-flex(2 0 0); -webkit-padding-start: 200px"><div data-offset-x="275"></div></div>
75   <div data-expected-width="75" data-offset-x="425" style="width: -webkit-flex(1 0 0); -webkit-margin-end: 100px;"></div>
76 </div>
77
78 <div class="flexbox rtl">
79   <div data-expected-width="75" data-offset-x="525" style="width: -webkit-flex(1 0 0); margin: 0 auto;"></div>
80   <div data-expected-width="350" data-offset-x="175" style="width: -webkit-flex(2 0 0); -webkit-padding-start: 200px"><div data-offset-x="175"></div></div>
81   <div data-expected-width="75" data-offset-x="100" style="width: -webkit-flex(1 0 0); -webkit-margin-end: 100px;"></div>
82 </div>
83
84 <div style="position: relative;">
85 <div class="flexbox column">
86   <div data-expected-height="150" data-offset-y="0" style="height: -webkit-flex(1 0 0); margin: auto 200px auto 150px;"></div>
87   <div data-expected-height="300" data-offset-y="150" style="height: -webkit-flex(2 0 0); -webkit-padding-start: 200px"><div data-offset-y="150" data-offset-x="200"></div></div>
88   <div data-expected-height="150" data-offset-y="450" style="height: -webkit-flex(1 0 0); -webkit-margin-end: 100px;"></div>
89 </div>
90 </div>
91
92 <div style="position: relative;">
93 <div class="flexbox column rtl">
94   <div data-expected-height="150" data-offset-y="0" data-offset-x="480" style="height: -webkit-flex(1 0 0); margin: auto 100px auto 50px;"></div>
95   <div data-expected-height="300" data-offset-y="150" style="height: -webkit-flex(2 0 0); -webkit-padding-start: 200px"><div data-offset-y="150" data-offset-x="380"></div></div>
96   <div data-expected-height="150" data-offset-y="450" data-offset-x="580" style="height: -webkit-flex(1 0 0); -webkit-margin-end: 100px;"></div>
97 </div>
98 </div>
99
100 <div style="position: relative;">
101 <div data-expected-height="600" class="flexbox vertical-lr column">
102   <div data-offset-x="0" data-expected-width="500" style="width: -webkit-flex(1 0 0); min-width: 300px"></div>
103   <div data-offset-x="500" data-offset-y="100" data-expected-width="100" style="width: -webkit-flex(1 0 200px); max-width: 100px; margin: 100px 0 50px 0;"></div>
104 </div>
105 </div>
106
107 <div style="position: relative;">
108 <div data-expected-height="600" class="flexbox vertical-rl column">
109   <div data-offset-x="100" data-expected-width="500" style="width: -webkit-flex(1 0 0); min-width: 300px; margin-bottom: 100px"></div>
110   <div data-offset-x="0" data-offset-y="100" data-expected-width="100" style="width: -webkit-flex(1 0 200px); max-width: 100px; margin: 100px 0 50px 0;"></div>
111 </div>
112 </div>
113
114 </body>
115 </html>