Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / shorthand-mismatched-list-crash.html
blobad2538984951f72827e744e8aa280a322671c6f7
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Test for WebKit bug 31559: Crash with mismatched lists and shorthands.</title>
5 <script src="../../resources/js-test.js"></script>
6 </head>
7 <body>
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>
11 <div id="test"></div>
13 <script>
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");
28 </script>
29 </body>
30 </html>