|
49 | 49 | <script src="resources/flexbox.js"></script> |
50 | 50 | <body onload="checkFlexBoxen()"> |
51 | 51 | <div class="flexbox horizontal"> |
52 | | - <div data-expected-height="10" data-offset-y="0" style="height: -webkit-flex(1 0 10px)"></div> |
| 52 | + <div data-expected-height="10" data-offset-y="0" style="-webkit-flex: 1 0 10px"></div> |
53 | 53 | <div data-expected-height="10" data-offset-y="10" style="height: 10px;"></div> |
54 | 54 | <div data-expected-height="10" data-offset-y="20"><div data-expected-height="10" data-offset-y="20" style="height: 10px"></div></div> |
55 | 55 | </div> |
56 | 56 |
|
57 | 57 | <!-- The last div is sized to 0 because there is no available space, however its child overflows. --> |
58 | 58 | <div class="flexbox horizontal"> |
59 | | - <div data-expected-height="0" data-offset-y="0" style="height: -webkit-flex(1)"></div> |
| 59 | + <div data-expected-height="0" data-offset-y="0" style="-webkit-flex: 1"></div> |
60 | 60 | <div data-expected-height="10" data-offset-y="0" style="height: 10px;"></div> |
61 | | - <div data-expected-height="10" data-offset-y="10" style="height: -webkit-flex(1 auto)"><div style="height: 10px"></div></div> |
62 | | - <div data-expected-height="0" data-offset-y="20" style="height: -webkit-flex(1)"><div data-expected-height="10" data-offset-y="20" class="child-div" style="height: 10px"></div></div> |
| 61 | + <div data-expected-height="10" data-offset-y="10" style="-webkit-flex: 1 auto"><div style="height: 10px"></div></div> |
| 62 | + <div data-expected-height="0" data-offset-y="20" style="-webkit-flex: 1"><div data-expected-height="10" data-offset-y="20" class="child-div" style="height: 10px"></div></div> |
63 | 63 | </div> |
64 | 64 |
|
65 | 65 | <div class="flexbox horizontal"> |
66 | | - <div data-expected-height="10" data-offset-y="10" style="height: -webkit-flex(1 0 10px); margin-top: 10px;"></div> |
| 66 | + <div data-expected-height="10" data-offset-y="10" style="-webkit-flex: 1 0 10px; margin-top: 10px;"></div> |
67 | 67 | <div data-expected-height="10" data-offset-y="20" style="height: 10px; margin-bottom: 20px;"></div> |
68 | 68 | <div data-expected-height="20" data-offset-y="50" style="padding-top: 10px"><div data-expected-height="10" data-offset-y="60" style="height: 10px"></div></div> |
69 | 69 | </div> |
70 | 70 |
|
71 | 71 | <!-- Same as previous test case but with a flex-pack set. Since there's no |
72 | 72 | available space, it should layout the same. --> |
73 | 73 | <div class="flexbox horizontal" style="-webkit-flex-pack: justify"> |
74 | | - <div data-expected-height="10" data-offset-y="10" style="height: -webkit-flex(1 0 10px); margin-top: 10px;"></div> |
| 74 | + <div data-expected-height="10" data-offset-y="10" style="-webkit-flex: 1 0 10px; margin-top: 10px;"></div> |
75 | 75 | <div data-expected-height="10" data-offset-y="20" style="height: 10px; margin-bottom: 20px;"></div> |
76 | 76 | <div data-expected-height="20" data-offset-y="50" style="padding-top: 10px"><div data-expected-height="10" data-offset-y="60" style="height: 10px"></div></div> |
77 | 77 | </div> |
78 | 78 |
|
79 | 79 | <div class="flexbox horizontal" data-expected-height="20"> |
80 | | - <div data-expected-height="10" data-offset-y="0" style="height: -webkit-flex(0 1 auto)"><div style="height: 10px"></div></div> |
81 | | - <div data-expected-height="10" data-offset-y="10" style="height: -webkit-flex(0 2 auto)"><div style="height: 10px"></div></div> |
| 80 | + <div data-expected-height="10" data-offset-y="0" style="-webkit-flex: 0 1 auto"><div style="height: 10px"></div></div> |
| 81 | + <div data-expected-height="10" data-offset-y="10" style="-webkit-flex: 0 2 auto"><div style="height: 10px"></div></div> |
82 | 82 | </div> |
83 | 83 |
|
84 | 84 | <div class="flexbox horizontal" style="min-height: 10px" data-expected-height="20"> |
85 | | - <div data-expected-height="10" data-offset-y="0" style="height: -webkit-flex(0 1 auto)"><div style="height: 10px"></div></div> |
86 | | - <div data-expected-height="10" data-offset-y="10" style="height: -webkit-flex(0 2 auto)"><div style="height: 10px"></div></div> |
| 85 | + <div data-expected-height="10" data-offset-y="0" style="-webkit-flex: 0 1 auto"><div style="height: 10px"></div></div> |
| 86 | + <div data-expected-height="10" data-offset-y="10" style="-webkit-flex: 0 2 auto"><div style="height: 10px"></div></div> |
87 | 87 | </div> |
88 | 88 |
|
89 | 89 | <div class="flexbox horizontal" style="min-height: 5px; max-height: 17px;" data-expected-height="17"> |
90 | | - <div data-expected-height="9" data-offset-y="0" style="height: -webkit-flex(0 1 auto)"><div style="height: 10px"></div></div> |
91 | | - <div data-expected-height="8" data-offset-y="9" style="height: -webkit-flex(0 2 auto)"><div style="height: 10px"></div></div> |
| 90 | + <div data-expected-height="9" data-offset-y="0" style="-webkit-flex: 0 1 auto"><div style="height: 10px"></div></div> |
| 91 | + <div data-expected-height="8" data-offset-y="9" style="-webkit-flex: 0 2 auto"><div style="height: 10px"></div></div> |
92 | 92 | </div> |
93 | 93 |
|
94 | 94 | <div class="flexbox horizontal" style="min-height: 5px; max-height: 30px; padding-top: 1px; padding-bottom: 2px;" data-expected-height="33"> |
95 | | - <div data-expected-height="15" data-offset-y="1" style="height: -webkit-flex(0 1 auto)"><div style="height: 20px"></div></div> |
96 | | - <div data-expected-height="15" data-offset-y="16" style="height: -webkit-flex(0 1 auto)"><div style="height: 20px"></div></div> |
| 95 | + <div data-expected-height="15" data-offset-y="1" style="-webkit-flex: 0 1 auto"><div style="height: 20px"></div></div> |
| 96 | + <div data-expected-height="15" data-offset-y="16" style="-webkit-flex: 0 1 auto"><div style="height: 20px"></div></div> |
97 | 97 | </div> |
98 | 98 |
|
99 | 99 | <div class="flexbox horizontal"> |
100 | 100 | <div data-expected-client-height="10" data-offset-y="0" style="overflow: scroll"><div data-expected-height=10 style="height: 10px"></div></div> |
101 | 101 | </div> |
102 | 102 |
|
103 | 103 | <div class="flexbox vertical"> |
104 | | - <div data-expected-width="10" data-offset-x="20" style="width: -webkit-flex(1 0 10px)"></div> |
| 104 | + <div data-expected-width="10" data-offset-x="20" style="-webkit-flex: 1 0 10px"></div> |
105 | 105 | <div data-expected-width="10" data-offset-x="10" style="width: 10px;"></div> |
106 | 106 | <div data-expected-width="10" data-offset-x="0"><div data-expected-width="10" data-offset-x="0" style="width: 10px"></div></div> |
107 | 107 | </div> |
108 | 108 |
|
109 | 109 | <!-- The first div overflows to the left, so give it a margin-left so we can see box it paints. --> |
110 | 110 | <div class="flexbox vertical" style="margin-left: 100px;"> |
111 | | - <div data-expected-width="0" data-offset-x="20" style="width: -webkit-flex(1)"><div data-expected-width="50" data-offset-x="-30" class="child-div" style="width: 50px"></div></div> |
112 | | - <div data-expected-width="0" data-offset-x="20" style="width: -webkit-flex(1)"></div> |
| 111 | + <div data-expected-width="0" data-offset-x="20" style="-webkit-flex: 1"><div data-expected-width="50" data-offset-x="-30" class="child-div" style="width: 50px"></div></div> |
| 112 | + <div data-expected-width="0" data-offset-x="20" style="-webkit-flex: 1"></div> |
113 | 113 | <div data-expected-width="10" data-offset-x="10" style="width: 10px;"></div> |
114 | | - <div data-expected-width="10" data-offset-x="0" style="width: -webkit-flex(1 auto)"><div style="width: 10px"></div></div> |
| 114 | + <div data-expected-width="10" data-offset-x="0" style="-webkit-flex: 1 auto"><div style="width: 10px"></div></div> |
115 | 115 | </div> |
116 | 116 |
|
117 | 117 | </body> |
|
0 commit comments