Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / transitions / longhand-vs-shorthand-initial.html
blobdf3fc1363f0e69a26a33ea11b6067c09d24ac05f
1 <!DOCTYPE>
3 <html>
4 <head>
5 <style>
6 .box {
7 height: 100px;
8 width: 100px;
9 margin: 10px;
10 background-color: white;
11 -webkit-transition-property: width;
14 .box {
15 -webkit-transition: 2s;
18 #box.final {
19 background-color: black;
22 </style>
23 <script src="../animations/resources/animation-test-helpers.js"></script>
24 <script type="text/javascript">
26 const expectedValues = [
27 // [time, element-id, property, expected-value, tolerance]
28 [0.5, 'box', 'background-color', [153, 153, 153], 4],
31 function setupTest()
33 document.getElementById('box').className = 'box final';
36 runTransitionTest(expectedValues, setupTest);
37 </script>
38 </head>
39 <body>
41 <div id="box" class="box"></div>
43 <div id="result">
44 </div>
46 </body>
47 </html>