Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css3 / calc / transition-crash.html
blob9aa3ebb59447363722c58888f8e57e7ab860a961
1 <!DOCTYPE html>
2 <style>
3 .transition {
4 height: calc(100% - 10px);
5 -webkit-transition: height 50ms;
7 .flim + .sibling {
9 </style>
11 <body>
12 This test checks class changes affecting sibling selectors happening during transitions over calculated lengths.
13 The test passes if it does not crash.
14 </body>
16 <script>
17 if (window.testRunner) {
18 testRunner.dumpAsText();
19 testRunner.waitUntilDone();
22 div = document.createElement('div');
23 div.setAttribute('class', 'sibling');
24 document.body.appendChild(div);
26 th = document.createElement('th'); // td, tr also cause test to fail
27 th.setAttribute('class', 'transition');
28 document.body.appendChild(th);
30 function boom() {
31 div.setAttribute('class', 'stix');
32 if (window.testRunner)
33 testRunner.notifyDone();
35 setTimeout(boom, 1);
36 </script>