Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / transitions / remove-accelerated-transition.html
bloba6fe5efb9b91ab323b04b721dfe83841b8091902
1 <html>
2 <head>
3 <style>
4 #a {
5 background-color: red;
6 height: 100px;
7 width: 100px;
8 -webkit-transition: height 0.5s linear;
9 overflow: hidden;
12 #b {
13 background-color: blue;
14 height: 100px;
15 width: 100px;
16 -webkit-transition: -webkit-transform 0.5s linear;
18 </style>
19 <script>
20 if (window.testRunner) {
21 testRunner.dumpAsText();
22 testRunner.waitUntilDone();
25 function endTest() {
26 if (window.testRunner) {
27 testRunner.notifyDone();
31 function startTest() {
32 var a = document.getElementById("a");
33 var b = document.getElementById("b");
34 a.addEventListener("webkitTransitionEnd", endTest, false);
36 // Trigger transitions.
37 a.style.height = "0px";
38 b.style.webkitTransform = "translateX(10px)";
40 // Force layout.
41 document.body.offsetHeight;
43 // Remove the transform transition by hiding its div.
44 b.style.display = "none";
46 </script>
47 </head>
48 <body onload="startTest()">
49 <div id="a">FAIL</div>
50 <div id="b"></div>
51 PASS
52 </body>
54 </html>