OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 This tests transitioning of elements containing a calc expression. The test pass
es if it does not crash. | 2 This tests transitioning of elements containing a calc expression. The test pass
es if it does not crash. |
3 <div> | 3 <div> |
4 <div style="width: -webkit-calc(-100px + 100%);"></div> | 4 <div style="width: -webkit-calc(-100px + 100%);"></div> |
5 </div> | 5 </div> |
6 <script> | 6 <script> |
7 if (window.layoutTestController) { | 7 if (window.layoutTestController) { |
8 layoutTestController.dumpAsText(true); | 8 layoutTestController.dumpAsText(true); |
9 layoutTestController.waitUntilDone(); | 9 layoutTestController.waitUntilDone(); |
10 } | 10 } |
11 | 11 |
12 function boom() { | 12 function boom() { |
13 head = document.getElementsByTagName("head")[0]; | 13 head = document.getElementsByTagName("head")[0]; |
14 var style = document.createElement("style"); | 14 var style = document.createElement("style"); |
15 style.innerHTML=":last-child {-webkit-transition-duration:.1s;}"; | 15 style.innerHTML=":last-child {-webkit-transition-duration:.1s;}"; |
16 head.appendChild(style); | 16 head.appendChild(style); |
17 if (window.layoutTestController) | 17 if (window.layoutTestController) |
18 layoutTestController.notifyDone(); | 18 layoutTestController.notifyDone(); |
19 } | 19 } |
20 | 20 |
21 setTimeout(boom, 10); | 21 setTimeout(boom, 10); |
22 </script> | 22 </script> |
OLD | NEW |