blob: e87260ffe65327b4e656daefa93a3539d6f8bd74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" href="resources/default.css" />
<style>
table {
border-spacing: 0px;
background: red;
}
td {
padding: 0px;
border: 2px solid green;
}
</style>
<script src="resources/text-based-repaint.js"></script>
<script>
if (window.testRunner)
testRunner.dumpAsTextWithPixelResults();
function repaintTest()
{
var cell = document.getElementById("cellToScroll");
cell.scrollLeft = 1200;
}
window.addEventListener("load", runRepaintTest, false);
</script>
</head>
<body>
<!-- Bug 71550 - REGRESSION (r93614): Content remains despite parent element being scrolled off page using javascript. -->
<!-- For the test to pass you should not see any RED, only green -->
<div class="red" style="height: 200px; width: 300px;"></div>
<table class="relative" style="table-layout: fixed; width: 0; top: 1000px; left: 800px;">
<tr class="red">
<td class="green" style="height: 100px; width: 300px;"></td>
<td class="green" style="height: 100px; width: 450px;"></td>
</tr>
<tr>
<td style="overflow: hidden"><div class="green" style="height: 465px; width: 300px"></div></td>
<td id="cellToScroll" class="relative" style="overflow: scroll;">
<div class="relative red" style="height: 450px; width: 450px;"></div>
<div class="absolute green" style="height: 450px; width: 450px; left: 500px; top: 0px"></div>
</td>
</tr>
</table>
<script>
// Make sure we scroll to the bottom of the page.
window.scrollTo(950, 1250);
</script>
</body>
</html>
|