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

Side by Side Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-simple-div-boxshadow-fixed-expected.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/target-div-run-test.js"></script> 4 <script src="resources/target-div-run-test.js"></script>
5 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css" > 5 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css" >
6 </head> 6 </head>
7 <body onload="runTest();"> 7 <body onload="runTest();">
8 <div id="highlight" class="fauxHighlight" style="z-index: 1; position: absolute; "></div> 8 <div id="highlight" class="fauxHighlight" style="z-index: 1; position: absolute; "></div>
9 <div style="top: 10px; left: 10px; -webkit-transform: translateZ(0);"> 9 <div style="top: 10px; left: 10px; transform: translateZ(0);">
10 <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: sol id; border-width: 2px;"> 10 <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: sol id; border-width: 2px;">
11 <br><center>Target</center><br> 11 <br><center>Target</center><br>
12 </div> 12 </div>
13 </div> 13 </div>
14 <div style="position: absolute; left: 10px; top: 250px; -webkit-transform: trans lateZ(0);"> 14 <div style="position: absolute; left: 10px; top: 250px; transform: translateZ(0) ;">
15 This test is successful if the box labelled "Target" has a green rectangle cente red on it. 15 This test is successful if the box labelled "Target" has a green rectangle cente red on it.
16 </div> 16 </div>
17 <script> 17 <script>
18 function runTest() { 18 function runTest() {
19 var clientRect = document.getElementById('targetDiv').getBoundingClientRect( ); 19 var clientRect = document.getElementById('targetDiv').getBoundingClientRect( );
20 var highlight = document.getElementById('highlight'); 20 var highlight = document.getElementById('highlight');
21 21
22 highlight.style.left = clientRect.left + "px"; 22 highlight.style.left = clientRect.left + "px";
23 highlight.style.top = clientRect.top + "px"; 23 highlight.style.top = clientRect.top + "px";
24 highlight.style.width = clientRect.width + "px"; 24 highlight.style.width = clientRect.width + "px";
25 highlight.style.height = clientRect.height + "px"; 25 highlight.style.height = clientRect.height + "px";
26 26
27 if (window.testRunner) 27 if (window.testRunner)
28 testRunner.dumpAsTextWithPixelResults(); 28 testRunner.dumpAsTextWithPixelResults();
29 } 29 }
30 </script> 30 </script>
31 </script> 31 </script>
32 </body> 32 </body>
33 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698