Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / compositing / gestures / gesture-tapHighlight-simple-div-boxshadow-fixed-nested2-expected.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 <script src="resources/target-div-run-test.js"></script>
6 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
7 </head>
8 <body onload="runTest();">
9 <div id="highlight" class="fauxHighlight" style="z-index: 1; position: absolute;"></div>
10 <div style="position: absolute; top: 10px; left: 10px; transform: translateZ(0);">
11 <div style="position: relative; top: 10px; left: 25px;">
12 <div id="targetDiv" style="position: fixed; left: 50px; top: 50px; width: 50px; height: 50px; box-shadow: 0px 4px 23px 5px rgba(0, 0, 0, 0.2); border-style: solid; border-width: 2px;">
13 <br><center>Target</center><br>
14 </div>
15 </div>
16 </div>
17 <div style="position: absolute; left: 10px; top: 250px; transform: translateZ(0);">
18 This test is successful if the box labelled "Target" has a green rectangle centered on it.
19 </div>
20 <script>
21 function runTest() {
22     var clientRect = document.getElementById('targetDiv').getBoundingClientRect();
23     var highlight = document.getElementById('highlight');
24
25     highlight.style.left = clientRect.left + "px";
26     highlight.style.top = clientRect.top + "px";
27     highlight.style.width = clientRect.width + "px";
28     highlight.style.height = clientRect.height + "px";
29
30     if (window.testRunner)
31         testRunner.dumpAsTextWithPixelResults();
32 }
33 </script>
34 </script>
35 </body>
36 </html>