1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en" lang=
"en">
4 <title>Test for bug
25282 (bug
12885 with a repaint container)
</title>
5 <style type=
"text/css">
10 transform: translateZ
(0);
12 div
.outer
{ position: absolute
; }
13 div
.wide
{ width: 100px; height: 50px; }
14 div
.narrow
{ width: 50px; }
15 div
.tall
{ width: 50px; height: 100px; }
16 div
.short
{ height: 50px; width: 50px; }
17 #main-content { float: left
; width: 100px; height: 80px; }
18 #target3 { display: none
; clear: both
; height: 20px; background: green
; }
21 if (window
.testRunner
)
22 testRunner
.waitUntilDone();
24 function repaintTest()
26 document
.getElementById('target1').style
.width
= '';
27 document
.getElementById('target2').style
.height
= '';
28 document
.getElementById('target3').style
.display
= '';
29 if (window
.testRunner
)
30 testRunner
.notifyDone();
32 function runRepaintTest()
34 setTimeout(repaintTest
, 0);
38 <body onload=
"runRepaintTest();">
41 <div class=
"outer" style=
"border: medium solid green; top: 8px; height: 100px;">
42 <div class=
"narrow" id=
"target1" style=
"width: auto;">
43 <div class=
"wide"></div>
47 <div class=
"outer" style=
"border: medium solid green; top: 158px; width: 100px;">
48 <div class=
"short" id=
"target2" style=
"height: auto;">
49 <div class=
"tall"></div>
53 <div class=
"outer" style=
"top: 308px;">
54 <div style=
"background: green;">
55 <div style=
"position: relative;">
56 <div id=
"main-content">
59 <div id=
"target3" style=
"display: block;"></div>