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

Side by Side Diff: LayoutTests/fast/transforms/transform-hit-test-flipped.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 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 #rotated { 4 #rotated {
5 width: 100px; 5 width: 100px;
6 height: 100px; 6 height: 100px;
7 background: red; 7 background: red;
8 margin: 10px; 8 margin: 10px;
9 padding: 10px; 9 padding: 10px;
10 -webkit-transform: rotate(180deg); 10 transform: rotate(180deg);
11 } 11 }
12 </style> 12 </style>
13 <script> 13 <script>
14 if (window.testRunner) 14 if (window.testRunner)
15 window.testRunner.dumpAsText() 15 window.testRunner.dumpAsText()
16 16
17 function runTest() 17 function runTest()
18 { 18 {
19 document.body.offsetWidth; 19 document.body.offsetWidth;
20 var elt = document.elementFromPoint(50, 50); 20 var elt = document.elementFromPoint(50, 50);
21 if (elt == document.getElementById('rotated')) 21 if (elt == document.getElementById('rotated'))
22 document.getElementById('console').innerHTML = 'PASS'; 22 document.getElementById('console').innerHTML = 'PASS';
23 else 23 else
24 document.getElementById('console').innerHTML = 'FAIL'; 24 document.getElementById('console').innerHTML = 'FAIL';
25 elt.style.display = 'none'; 25 elt.style.display = 'none';
26 } 26 }
27 </script> 27 </script>
28 </head> 28 </head>
29 <body onload="runTest()"> 29 <body onload="runTest()">
30 <div id="rotated">180 degree rotation</div> 30 <div id="rotated">180 degree rotation</div>
31 <div id="console"></div> 31 <div id="console"></div>
32 </body> 32 </body>
33 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698