2 <script src=
"resources/text-based-repaint.js"></script>
6 // No visual change. Optimally, there should be no repaint.
7 var target1
= document
.getElementById('target1');
8 target1
.style
.padding
= '20px';
9 target1
.style
.width
= '60px';
10 target1
.style
.height
= '60px';
12 // Content will shrink. Should repaint at least the content.
13 var target2
= document
.getElementById('target2');
14 target2
.style
.padding
= '20px';
15 target2
.style
.width
= '60px';
16 target2
.style
.height
= '60px';
18 window
.onload
= runRepaintTest
;
28 background-color: green;
36 background-color: yellow;
39 <div id=
"target1" class=
"outer"></div>
40 <div id=
"target2" class=
"outer"><div class=
"inner"></div></div>