6 border:
1px solid black;
15 background-color: blue;
16 -webkit-transition-property: min-width, min-height, max-width, max-height;
17 -webkit-transition-duration:
1s;
18 -webkit-transition-timing-function: linear;
26 #container.final .minner {
36 #container.final .maxer {
42 <script src=
"../animations/resources/animation-test-helpers.js"></script>
43 <script type=
"text/javascript">
45 const expectedValues
= [
46 // [time, element-id, property, expected-value, tolerance]
47 [0.5, 'box1', 'min-height', 150, 2],
48 [0.5, 'box1', 'min-width', 150, 2],
49 [0.5, 'box2', 'max-height', 75, 2],
50 [0.5, 'box2', 'max-width', 75, 2],
55 document
.getElementById('container').className
= 'final';
58 runTransitionTest(expectedValues
, setupTest
);
64 <div id=
"box1" class='minner box'
></div>
65 <div id=
"box2" class='maxer box'
></div>
68 <div id=
"result"></div>