| OLD | NEW |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| 2 "http://www.w3.org/TR/html4/loose.dtd"> | 2 "http://www.w3.org/TR/html4/loose.dtd"> |
| 3 | 3 |
| 4 <html lang="en"> | 4 <html lang="en"> |
| 5 <head> | 5 <head> |
| 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 7 <title>25052 testcase</title> | 7 <title>25052 testcase</title> |
| 8 <style type="text/css" media="screen"> | 8 <style type="text/css" media="screen"> |
| 9 body { | 9 body { |
| 10 margin: 100px; | 10 margin: 100px; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 transform: translate(0px, 100px); | 47 transform: translate(0px, 100px); |
| 48 } | 48 } |
| 49 #mover.moving { | 49 #mover.moving { |
| 50 transform: translate(0px, 100px); | 50 transform: translate(0px, 100px); |
| 51 } | 51 } |
| 52 </style> | 52 </style> |
| 53 <script type="text/javascript" charset="utf-8"> | 53 <script type="text/javascript" charset="utf-8"> |
| 54 if (window.testRunner) | 54 if (window.testRunner) |
| 55 testRunner.waitUntilDone(); | 55 testRunner.waitUntilDone(); |
| 56 | 56 |
| 57 function waitForCompositor() { |
| 58 return document.body.animate({opacity: [1, 1]}, 1).finished; |
| 59 } |
| 60 |
| 57 function startTest() | 61 function startTest() |
| 58 { | 62 { |
| 59 window.setTimeout(function() { | 63 var mover = document.getElementById('mover'); |
| 60 var mover = document.getElementById('mover'); | 64 getComputedStyle(mover).transform; // Force style recalc |
| 61 mover.className = 'moving'; | 65 mover.className = 'moving'; |
| 62 | 66 if (window.internals) |
| 63 window.setTimeout(function() { | 67 internals.pauseAnimations(0); |
| 64 if (window.testRunner) | 68 |
| 65 testRunner.notifyDone(); | 69 waitForCompositor().then(() => { |
| 66 }, 0); | 70 if (window.testRunner) { |
| 67 | 71 testRunner.notifyDone(); |
| 68 }, 0); | 72 } |
| 73 }); |
| 69 } | 74 } |
| 70 | 75 |
| 71 window.addEventListener('load', startTest, false); | 76 window.addEventListener('load', startTest, false); |
| 72 </script> | 77 </script> |
| 73 </head> | 78 </head> |
| 74 <body> | 79 <body> |
| 75 | 80 |
| 76 <p>Things should not jump around when the green square starts the transition.</p
> | 81 <p>Things should not jump around when the green square starts the transition.</p
> |
| 77 <div id="container"> | 82 <div id="container"> |
| 78 <div id="header"> | 83 <div id="header"> |
| 79 <div id="hanger"></div> | 84 <div id="hanger"></div> |
| 80 </div> | 85 </div> |
| 81 <div id="mover"> | 86 <div id="mover"> |
| 82 </div> | 87 </div> |
| 83 </div> | 88 </div> |
| 84 | 89 |
| 85 </body> | 90 </body> |
| 86 </html> | 91 </html> |
| OLD | NEW |