4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
5 <title>Testing transitions of min-, max-width, height
</title>
6 <style type=
"text/css" media=
"screen">
8 border:
1px solid black;
17 background-color: blue;
18 -webkit-transition-property: min-width, min-height, max-width, max-height;
19 -webkit-transition-duration:
1s;
20 -webkit-transition-timing-function: linear;
28 #container.final .minner {
38 #container.final .maxer {
44 <script src=
"transition-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
45 <script type=
"text/javascript" charset=
"utf-8">
47 const expectedValues = [
48 // [time, element-id, property, expected-value, tolerance]
49 [
0.5, 'box1', 'min-height',
150,
2],
50 [
0.5, 'box1', 'min-width',
150,
2],
51 [
0.5, 'box2', 'max-height',
75,
2],
52 [
0.5, 'box2', 'max-width',
75,
2],
57 document.getElementById('container').className = 'final';
60 runTransitionTest(expectedValues, setupTest, true);
67 <div id=
"box1" class='minner box'
></div>
68 <div id=
"box2" class='maxer box'
></div>
71 <div id=
"result"></div>