1 <!-- Based on fast/repaint/overflow-into-content.html -->
2 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en" lang=
"en">
5 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=
12885</title>
6 <style type=
"text/css">
7 div
.wide
{ width: 100px; height: 50px; }
8 div
.narrow
{ width: 50px; }
9 div
.tall
{ width: 50px; height: 100px; }
10 div
.short
{ height: 50px; width: 50px; }
11 #main-content { float: left
; width: 100px; height: 80px; }
12 #target3 { display: none
; clear: both
; height: 20px; background: green
; }
14 <script src=
"resources/paint-invalidation-test.js" type=
"text/javascript"></script>
16 window
.expectedPaintInvalidationObjects
= [
17 "LayoutBlockFlow DIV id='target3'",
18 "LayoutBlockFlow (positioned) DIV",
19 "LayoutBlockFlow (positioned) DIV",
20 "LayoutBlockFlow DIV",
22 function paintInvalidationTest()
24 document
.getElementById('target1').style
.width
= '';
25 document
.getElementById('target2').style
.height
= '';
26 document
.getElementById('target3').style
.display
= '';
30 <body onload=
"runPaintInvalidationTest();">
31 <div style=
"position: absolute; border: medium solid green; top: 8px; height: 100px;">
32 <div class=
"narrow" id=
"target1" style=
"width: auto;">
33 <div class=
"wide"></div>
37 <div style=
"position: absolute; border: medium solid green; top: 158px; width: 100px;">
38 <div class=
"short" id=
"target2" style=
"height: auto;">
39 <div class=
"tall"></div>
43 <div style=
"position: absolute; top: 308px;">
44 <div style=
"background: green;">
45 <div style=
"position: relative;">
46 <div id=
"main-content">
49 <div id=
"target3" style=
"display: block;"></div>