28 display: inline-block;
29 background-color: green;
37 function addChildren(test
)
39 for (i
= 0; i
< 20; i
++) {
40 box
= document
.createElement("div");
41 box
.setAttribute('class', 'contents');
42 box
.setAttribute('id', i
);
43 test
.appendChild(box
);
49 test
= document
.getElementById("test");
50 test
.style
['margin-left'] = '100%';
53 for (i
= 0; i
< 20; i
++) {
54 box
= document
.getElementById(i
);
55 test
.removeChild(box
);
57 document
.body
.offsetTop
;
60 document
.body
.offsetTop
;
62 test
.style
['margin-left'] = 'initial';
64 window
.onload
= runTest
;
71 crbug.com/
426166: Tests positioned movement layout when it needs to layout children because it's width has changed.