Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / cached-69296.html
blobc69e7f3501fd7ae9d72fe333cbd7a4683486030f
1 <!-- Based on fast/table/border-collapsing/cached-69296.html -->
2 <!--
3 Test for bug69296.
4 Collapsed borders should not disappear.
5 -->
6 <html>
7 <head>
8 <script src="resources/paint-invalidation-test.js"></script>
9 <style>
10 BODY {
11 margin: 20px;
13 TABLE {
14 border-collapse: collapse;
16 TD {
17 width: 50px;
18 height: 50px;
19 border: 1px solid #333333;
21 #row1:hover {
22 background-color: #ddd;
23 color: #111;
25 </style>
26 <head>
27 <script type="text/javascript">
28 window.expectedPaintInvalidationObjects = [
29 "LayoutTableCell TD",
30 "LayoutTableCell TD",
31 "LayoutTableCell TD",
32 "LayoutTableRow TR id='row1'",
33 "LayoutTableCell TD",
34 "LayoutTableCell TD",
35 "LayoutTableCell TD",
36 "LayoutTableCell TD",
37 "LayoutTableCell TD",
38 "LayoutTableCell TD",
39 "LayoutTableRow TR id='row1'",
40 "LayoutTableCell TD",
41 "LayoutTableCell TD",
42 "LayoutTableCell TD",
44 function paintInvalidationTest() {
45 row = document.getElementById('row1');
46 rowRect = row.getBoundingClientRect();
47 x = rowRect.left + 75;
48 y = rowRect.top;
49 document.body.offsetTop;
50 if (window.eventSender) {
51 eventSender.mouseMoveTo(x, y + 1);
52 eventSender.mouseMoveTo(x, y - 1);
55 </script>
56 </head>
57 <body onload="runPaintInvalidationTest()">
58 <table>
59 <tr id="row1">
60 <td valign="top"/>
61 <td/>
62 <td>
63 <div>
64 <div style="width: 20px; height: 20px; background: lime;"/>
65 </div>
66 </td>
67 </tr>
68 <tr id="row2">
69 <td/>
70 <td/>
71 <td/>
72 </tr>
73 </table>
74 </body>
75 </html>