blob: 58a699dd526df84b678e68d91ce802ce0e00423e (
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
|
<!DOCTYPE html>
<style>
body {
margin: 0;
}
table {
border-collapse: collapse;
padding: 4px;
}
tr {
background: red;
}
td {
width: 260px;
height: 50px;
/* Disable the cell padding for output simplicity. */
padding: 0;
}
</style>
<!--
This test checks that we correctly invalidate a row on a table with padding.
There should be no red below.
-->
<table>
<td></td>
</table>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script src="resources/text-based-repaint.js"></script>
<script>
repaintTest = function() {
var row = document.getElementsByTagName("tr")[0];
row.style.background = "green";
}
runAfterLayoutAndPaint(function() {
runRepaintTest();
});
</script>
|