Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css3 / calc / transition-crash2.html
blobe3f03ae9f60e8803d4fd929d323d15efe98d581b
1 <!DOCTYPE html>
2 This tests transitioning of elements containing a calc expression. The test passes if it does not crash.
3 <div>
4 <div style="width: calc(-100px + 100%);"></div>
5 </div>
6 <script>
7 if (window.testRunner) {
8 testRunner.dumpAsText();
9 testRunner.waitUntilDone();
12 function boom() {
13 head = document.getElementsByTagName("head")[0];
14 var style = document.createElement("style");
15 style.innerHTML=":last-child {-webkit-transition-duration:.1s;}";
16 head.appendChild(style);
17 if (window.testRunner)
18 testRunner.notifyDone();
21 setTimeout(boom, 10);
22 </script>