1 <!-- Based on fast/repaint/table-section-repaint.html -->
4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=
12079</title>
5 <style type=
"text/css">
6 div
.playground
{ position: relative
; width: 90px; height: 90px; }
7 .red { background-color: yellow
; }
8 .blue { background-color: blue
; }
9 .green { background-color: green
; }
10 .zero { height: 0; width: 60px; }
11 .half { height: 30px; width: 60px; }
12 .full { height: 60px; width: 60px; }
14 <script src=
"resources/paint-invalidation-test.js" type=
"text/javascript"></script>
15 <script type=
"text/javascript">
16 window
.expectedPaintInvalidationObjects
= [
17 "LayoutBlockFlow CAPTION id='caption1' class='blue half'",
18 "LayoutTableSection TBODY",
20 "LayoutTableCell TD class='red half'",
22 "LayoutTableCell TD class='green half'",
24 "LayoutBlockFlow DIV id='top' class='blue half'",
25 "LayoutTableSection TBODY",
27 "LayoutTableCell TD class='red half'",
29 "LayoutTableCell TD class='green half'",
30 "LayoutBlockFlow CAPTION id='caption2' class='zero'",
31 "LayoutTableSection TBODY",
33 "LayoutTableCell TD class='green half'",
35 "LayoutTableCell TD class='red half'",
37 "LayoutBlockFlow DIV id='innerDiv'",
38 "LayoutTableSection TBODY",
40 "LayoutTableCell TD class='half'",
42 "LayoutTableCell TD class='half'",
44 function paintInvalidationTest()
46 var caption1
= document
.getElementById("caption1");
47 caption1
.style
.height
= "0";
49 var caption2
= document
.getElementById("caption2");
50 caption2
.style
.height
= "30px";
52 var top
= document
.getElementById("top");
53 top
.style
.height
= "0";
55 var top
= document
.getElementById("innerDiv");
56 innerDiv
.style
.height
= "15px";
60 <body onload=
"runPaintInvalidationTest()">
61 <div class=
"playground">
62 <table cellpadding=
"0" cellspacing=
"0">
63 <caption id=
"caption1" class=
"blue half"></caption>
66 <td class=
"red half"></td>
69 <td class=
"green half"></td>
75 <div class=
"playground">
76 <table cellpadding=
"0" cellspacing=
"0">
79 <td><div id=
"top" class=
"blue half"></div></td>
84 <td class=
"red half"></td>
87 <td class=
"green half"></td>
93 <div class=
"playground">
94 <table cellpadding=
"0" cellspacing=
"0">
95 <caption id=
"caption2" class=
"zero"></caption>
98 <td class=
"green half"></td>
101 <td class=
"red half"></td>
107 <div class=
"playground" style=
"margin-top: 30px;">
108 <table cellpaddin=
"0" cellspacing=
"0" style=
"width: 60px; border-collapse: collapse; border: 8px solid green;">
109 <caption style=
"width: 10px; margin: auto;">
110 <div id=
"innerDiv"></div>
113 <tr><td class=
"half"></td></tr>
114 <tr><td class=
"half" style=
"border-top: solid yellow 8px;"></td></tr>