Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / hover-invalidation-table.html
blobb581966c6285f7d1ffd1f296e76245a06452c4c3
1 <!-- Based on fast/repaint/hover-invalidation-table.html -->
2 <!DOCTYPE html>
3 <style>
4 tr:hover {
5 background-color: green;
8 table {
9 position:relative;
10 top: 180px;
12 </style>
13 <script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
14 <script>
15 window.expectedPaintInvalidationObjects = [
16 "LayoutTableCell TD id='secondRowSpan'",
17 "LayoutTableCell TD",
18 "LayoutTableRow TR class='bla'",
20 function paintInvalidationTest()
22 var secondRowSpan = document.getElementById("secondRowSpan");
23 var secondRowSpanBox = secondRowSpan.getBoundingClientRect();
24 var secondRowSpanCenterX = (secondRowSpanBox.left + secondRowSpanBox.right) / 2;
25 var secondRowSpanCenterY = (secondRowSpanBox.top + secondRowSpanBox.bottom) / 2;
27 if (window.eventSender) {
28 eventSender.mouseMoveTo(secondRowSpanCenterX, secondRowSpanCenterY);
29 eventSender.mouseDown();
30 eventSender.mouseUp();
34 window.addEventListener("load", runPaintInvalidationTest);
35 </script>
36 <table>
37 <tr>
38 <td rowspan="2">1,1</td>
39 <td>1,4</td>
40 </tr>
41 <tr>
42 <td>2,3</td>
43 </tr>
44 <tr class="bla">
45 <td rowspan="2" id="secondRowSpan">3,1</td>
46 <td>3,4</td>
47 </tr>
48 <tr>
49 <td>4,4</td>
50 </tr>
51 </table>