23 display: inline-block;
24 background-color: green;
32 function addChildren(test
)
34 for (i
= 0; i
< 20; i
++) {
35 box
= document
.createElement("div");
36 box
.setAttribute('class', 'contents');
37 box
.setAttribute('id', i
);
38 test
.appendChild(box
);
44 test
= document
.getElementById("test");
47 for (i
= 0; i
< 20; i
++) {
48 box
= document
.getElementById(i
);
49 test
.removeChild(box
);
51 document
.body
.offsetTop
;
54 document
.body
.offsetTop
;
56 test
.style
['top'] = '300px';
58 window
.onload
= runTest
;
65 Tests positioned movement layout when its height has changed.