Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / transitions / bad-transition-shorthand-crash.html
blob858119c44f8385a17a2190ce1af25449666298fa
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
4 <html lang="en">
5 <head>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7 <title>Test For Crash When Transition Properties Overridden</title>
8 <style type="text/css" media="screen">
9 #box {
10 position: relative;
11 height: 100px;
12 width: 100px;
13 background-color: blue;
14 -webkit-transform: rotate(0);
15 -webkit-transition: -webkit-transform, 2s;
17 </style>
18 <script type="text/javascript" charset="utf-8">
19 if (window.layoutTestController) {
20 layoutTestController.dumpAsText();
21 layoutTestController.waitUntilDone();
24 function finish()
26 layoutTestController.notifyDone();
29 function returnToStart()
31 var box = document.getElementById('box');
32 box.style.webkitTransform = 'rotate(0)';
33 setTimeout(finish, 100);
36 function start()
38 var box = document.getElementById('box');
39 box.style.webkitTransform = 'rotate(180deg)';
40 setTimeout(returnToStart, 100);
43 window.addEventListener('load', start, false);
45 </script>
46 </head>
47 <body>
49 <p>
50 This tests a crash that was occuring when you have both an explicit property and 'all' in the -webkit-transition-property
51 CSS property. The crash would occur when you retarget the transition. This test should not crash.
52 </p>
53 <div id="box">
54 </div>
55 </body>
56 </html>