Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / repaint / offset-change-wrong-invalidation-with-float.html
blobfdecabd676fe82e6d4bd2278683714051f5702e2
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="resources/text-based-repaint.js"></script>
5 <style>
6 #menu {
7 float: left;
8 position: relative;
11 #watches {
12 float: left;
13 transform: scale(1,1);
16 #placeholder {
17 position: relative;
18 backface-visibility: hidden;
21 #submenu {
22 position: absolute;
23 top: -200px;
24 background: red;
26 </style>
28 </head>
29 <body>
30 <div>This test has passed if there is no red rectangle below.</div>
31 <ul>
32 <li id="watches"><span id="placeholder"></span></li>
33 <li id="menu">
34 <ul id="submenu">
35 <li></li>
36 </ul>
37 </li>
38 </ul>
40 <script>
41 if (window.testRunner)
42 testRunner.waitUntilDone();
43 window.testIsAsync = true;
45 var submenu = document.getElementById("submenu");
46 function repaintTest()
48 submenu.style.top = "-200px";
49 finishRepaintTest();
52 window.requestAnimationFrame(function() {
53 submenu.style.top = "50px";
54 window.requestAnimationFrame(function() {
55 runRepaintTest();
56 });
57 });
58 </script>
60 </body>
61 </html>