REGRESSION (r230480): Cannot adjust photo position on LinkedIn's profile page
[WebKit-https.git] / LayoutTests / fast / images / positioned-image-when-transform-is-present.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>This tests that we reposition the image when transform is present.</title>
5 <style>
6 img {
7         position: absolute;
8         top: 10px;
9         left: 10px;
10         width: 100px;
11         height: 100px;
12         transform: translateX(0px);
13 }
14
15 div {
16         position: relative;
17         width: 100px;
18         height: 100px;
19         overflow: hidden;
20 }
21 </style>
22 </head>
23 <body>
24 PASS if the image disappears completely.
25 <div><img id=moveOut src="foobar-broken.jpg"></div>
26 <script>
27         document.body.offsetHeight;
28         moveOut.style.transform = "translateX(1px)";
29         moveOut.style.left = "200px";
30 </script>
31 </body>
32 </html>