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

Side by Side Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-with-box-shadow.html

Issue 1096383007: Position adjustment for composited scrolling is not needed if the layer has box decorations. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 5 years, 6 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 <!DOCTYPE html>
2 <style>
3 #main {
4 width:100px;
5 height:200px;
6 overflow-y:auto;
7 box-shadow: 0 4px 8px #d6d6d6;
8 }
9
10 #item {
11 display:block;
12 text-decoration:none;
13 padding-top:6px;
14 padding-bottom:6px;
15 }
16 </style>
17
18 <script>
19 if (window.testRunner) {
20 testRunner.dumpAsTextWithPixelResults();
21 testRunner.waitUntilDone();
22 }
23
24 function runTest() {
25 var clientRect = document.getElementById('item1').getBoundingClientRect();
26 x = (clientRect.left + clientRect.right) / 2;
27 y = (clientRect.top + clientRect.bottom) / 2;
28
29 if (window.eventSender) {
30 eventSender.gestureShowPress(x, y);
31 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
32 }
33 }
34
35 window.onload = runTest;
36 </script>
37 <div id="main">
38 <a id="item1" href='#'>Item Link 1</a>
39 <a id="item2" href='#'>Item Link 2</a>
40 <a id="item3" href='#'>Item Link 3</a>
41 <a id="item4" href='#'>Item Link 4</a>
42 <a id="item5" href='#'>Item Link 5</a>
43 <a id="item6" href='#'>Item Link 6</a>
44 <a id="item7" href='#'>Item Link 7</a>
45 <a id="item8" href='#'>Item Link 8</a>
46 <a id="item9" href='#'>Item Link 9</a>
47 <a id="item10" href='#'>Item Link 10</a>
48 <a id="item11" href='#'>Item Link 11</a>
49 <a id="item12" href='#'>Item Link 12</a>
50 <a id="item13" href='#'>Item Link 13</a>
51 <a id="item14" href='#'>Item Link 14</a>
52 <a id="item15" href='#'>Item Link 15</a>
53 <a id="item16" href='#'>Item Link 16</a>
54 </div>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/compositing/gestures/gesture-tapHighlight-with-box-shadow-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698