4 <title>Test for WebKit bug 31559: Crash with mismatched lists and shorthands.</title>
5 <script src="../js/resources/js-test-pre.js"></script>
8 <p id="description">Test for WebKit bug <a href="https://bugs.webkit.org/show_bug.cgi?id=31559">31559</a>: Crash with mismatched lists and shorthands.</p>
9 <div id="console"></div>
14 var para = document.getElementById('test');
16 // Test longer shorthand
17 para.style.webkitTransition = 'width 1s, left 1s, top 1s';
18 para.style.webkitTransitionProperty = 'width, left';
20 shouldBeEqualToString("para.style.webkitTransition", "width 1s, left 1s, 1s");
22 // Test shorter shorthand
23 para.style.webkitTransition = 'width 1s, left 1s';
24 para.style.webkitTransitionProperty = 'width, left, top';
26 // the next line will crash
27 shouldBeEqualToString("para.style.webkitTransition", "width 1s, left 1s, top");
29 <script src="../js/resources/js-test-post.js"></script>