Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(829)

Side by Side Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-1-iframe-composited-scrolled-late-noncomposite.html

Issue 637763002: Unprefix usage of -webkit-transform in tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <script src="../../resources/run-after-display.js"></script> 5 <script src="../../resources/run-after-display.js"></script>
6 <script src="resources/link-highlight-helper.js"></script> 6 <script src="resources/link-highlight-helper.js"></script>
7 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css" > 7 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css" >
8 </head> 8 </head>
9 <body onLoad="runTest();"> 9 <body onLoad="runTest();">
10 <iframe id="targetFrame" src="resources/1-frame-composited.html" style="position : relative; left: 10px; top: 10px; width: 400px; height: 150px;"></iframe> 10 <iframe id="targetFrame" src="resources/1-frame-composited.html" style="position : relative; left: 10px; top: 10px; width: 400px; height: 150px;"></iframe>
11 <div style="position: relative; left: 10px; top: 20px; -webkit-transform: transl ateZ(0);"> 11 <div style="position: relative; left: 10px; top: 20px; transform: translateZ(0); ">
12 This test is successful if "Target Link" is covered by a green box with square c orners, 12 This test is successful if "Target Link" is covered by a green box with square c orners,
13 and the frame is partially scrolled. 13 and the frame is partially scrolled.
14 </div> 14 </div>
15 <script> 15 <script>
16 function runTest() { 16 function runTest() {
17 useMockHighlight(); 17 useMockHighlight();
18 var targetFrame = document.getElementById("targetFrame"); 18 var targetFrame = document.getElementById("targetFrame");
19 var clientRect = targetFrame.contentDocument.getElementById('targetLink').ge tBoundingClientRect(); 19 var clientRect = targetFrame.contentDocument.getElementById('targetLink').ge tBoundingClientRect();
20 x = (clientRect.left + clientRect.right) / 2; 20 x = (clientRect.left + clientRect.right) / 2;
21 y = (clientRect.top + clientRect.bottom) / 2 + targetFrame.getBoundingClient Rect().top; 21 y = (clientRect.top + clientRect.bottom) / 2 + targetFrame.getBoundingClient Rect().top;
(...skipping 11 matching lines...) Expand all
33 testRunner.notifyDone(); 33 testRunner.notifyDone();
34 }); 34 });
35 }); 35 });
36 } else { 36 } else {
37 debug("This test requires DumpRenderTree."); 37 debug("This test requires DumpRenderTree.");
38 } 38 }
39 } 39 }
40 </script> 40 </script>
41 </body> 41 </body>
42 </html> 42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698