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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/gestures/gesture-tapHighlight-skew-matrix.html

Issue 2604073002: Apply offset from the correct graphics layer; simplify code for link highlights. (Closed)
Patch Set: none Created 3 years, 11 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
(Empty)
1
2 <!DOCTYPE html>
3 <script src="resources/link-highlight-helper.js"></script>
4 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css" >
5 <body onload="runTest()">
6 <div id=parent style="overflow: scroll; will-change: transform">
7 <div class="target" style="position: relative; transform: skew(-15deg);"></div >
8 <a href="test" id="targetLink" class="opaqueHighlight">
9 <div style="width: 1000px; height: 500px; background: lightgray" ></div>
10 </a>
11 </div>
12 </div>
13 This test passes if the entire gray rectangle changes color to green.
14 </body>
15 <script>
16 function runTest() {
17 useMockHighlight();
18 var clientRect = document.getElementById('targetLink').getBoundingClientRect ();
19 x = (clientRect.left + clientRect.right) / 2;
20 y = (clientRect.top + clientRect.bottom) / 2;
21 if (window.testRunner) {
22 testRunner.dumpAsTextWithPixelResults();
23 testRunner.waitUntilDone();
24 }
25 if (window.eventSender) {
26 eventSender.gestureShowPress(x, y);
27 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
28 } else {
29 debug("This test requires DumpRenderTree.");
30 }
31 }
32 </script>
33 </body>
34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698