11 .flexbox :nth-child(
1) {
12 background-color: blue;
14 .flexbox :nth-child(
2) {
15 background-color: green;
18 -webkit-transition-property: -webkit-flex;
19 -webkit-transition-duration:
1s;
20 -webkit-transition-timing-function: linear;
24 -webkit-flex:
100 0 0px;
27 -webkit-flex:
300 0 0px;
31 -webkit-flex-direction: column;
34 -webkit-flex:
100 0 0px;
37 -webkit-flex:
0 0 200px;
41 -webkit-flex:
100 100 50px;
44 -webkit-flex:
100 100 100px;
48 -webkit-flex:
100 0 0px;
51 -webkit-flex:
0 0 0px;
55 <script src=
"../animations/resources/animation-test-helpers.js"></script>
56 <script type=
"text/javascript">
58 const expectedValues
= [
59 // [time, element-id, property, expected-value, tolerance]
60 [0.2, 'row1', '-webkit-flex', [140, 0, 0], 10],
61 [0.2, 'column1', '-webkit-flex', [80, 0, 40], 10],
62 [0.2, 'negative1', '-webkit-flex', [100, 100, 60], 10],
63 [0.2, 'no-flex1', '-webkit-flex', [80, 0, 0], 10],
64 [0.8, 'row1', '-webkit-flex', [260, 0, 0], 10],
65 [0.8, 'column1', '-webkit-flex', [20, 0, 160], 10],
66 [0.8, 'negative1', '-webkit-flex', [100, 100, 90], 10],
67 [0.8, 'no-flex1', '-webkit-flex', [20, 0, 0], 10],
72 document
.body
.className
= 'final';
75 runTransitionTest(expectedValues
, setupTest
);
80 <div id=
"flex-row" class='flexbox'
>
85 <div id=
"flex-column" class='flexbox'
>
86 <div id=
"column1"></div>
87 <div id=
"column2"></div>
90 <div id=
"flex-negative" class='flexbox'
>
91 <div id=
"negative1"></div>
92 <div id=
"negative2"></div>
95 <div id=
"flex-no-flex" class='flexbox'
>
96 <div id=
"no-flex1"></div>
97 <div id=
"no-flex2"></div>
100 <div id=
"result"></div>