| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| "http://www.w3.org/TR/html4/loose.dtd"> |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| <title>Box Transitions coming out from the viewport.</title> |
| <style type="text/css" media="screen"> |
| -webkit-transition: -webkit-transform 3s; |
| <script type="text/javascript" charset="utf-8"> |
| var box = document.getElementById("box"); |
| window.setTimeout(function() { |
| box.style.webkitTransform = "translateX(" + window.innerWidth * 2.5 + "px)"; |
| window.setTimeout(function() { |
| box.style.webkitTransform = "translateX(0px)"; |
| window.setTimeout(function() { |
| box.style.webkitTransform = "translateX(" + window.innerWidth * 2.5 + "px)"; |
| window.setTimeout(function() { |
| box.style.webkitTransform = "translateX(0px)"; |
| window.addEventListener('load', runTest, false) |
| We should be able to see that the red box is going out and coming from the viewport twice. |
| The reason why the box goes to the viewport's 2.5x distance is that the backing store cannot create tile only if the GraphicsLayer is out of keepRect. |
| <div id="box" class="container"> |