Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / sibling-positioning.html
blob91d2c544a90c1555229534f540241c9e27ab6331
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
4 <html lang="en">
5 <head>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7 <title>Initial backing position</title>
8 <style type="text/css" media="screen">
9 #parent {
10 position: relative;
11 height: 200px;
12 width: 200px;
13 border: 1px solid black;
16 #panel {
17 position: absolute;
18 height: 100px;
19 width: 100px;
20 left: -50px;
21 top: -50px;
22 opacity: 0.2;
23 background-color: gray;
26 #piece {
27 position: absolute;
28 left: 50px;
29 top: 50px;
30 height: 60px;
31 width: 60px;
32 background-color: green;
35 #piece:hover {
36 transform: translate3d(0, 0, 0);
39 #piece.moved {
40 transform: translate3d(0, 0, 0);
43 </style>
44 <script type="text/javascript" charset="utf-8">
45 if (window.testRunner)
46 testRunner.waitUntilDone();
48 function startTest()
50 window.setTimeout(function() {
51 var mover = document.getElementById('piece');
52 mover.className = 'moved';
54 window.setTimeout(function() {
55 if (window.testRunner)
56 testRunner.notifyDone();
57 }, 0);
59 }, 0);
62 window.addEventListener('load', startTest, false);
63 </script>
64 </head>
65 <body>
67 <div id="parent">
68 <div id="piece"></div>
69 <div id="panel"></div>
70 </div>
71 <p><a href="https://bugs.webkit.org/show_bug.cgi?id=26430">https://bugs.webkit.org/show_bug.cgi?id=26430</a></p>
72 <p>Green box should not move when hovered</p>
73 </body>
74 </html>