3 <script src=
"resources/dump-list.js"></script>
8 testRunner
.dumpAsText();
10 var list
= document
.getElementById("list");
11 list
.offsetTop
; // Force a relayout.
13 var nestedList
= document
.getElementById("nested-list");
14 var items
= nestedList
.children
.length
;
15 for (var i
= 0; i
< items
; ++i
)
16 nestedList
.removeChild(nestedList
.firstElementChild
);
18 document
.getElementById("console").innerHTML
= dumpList(list
);
20 // Don't show the actual list as it is useless in the text-only mode.
21 list
.parentNode
.removeChild(list
);
25 <body onload=
"test()">
26 <p>This tests that list item markers do not change when removing existing items from a nested list.
</p>
39 <li value=
"1">One
</li>
43 <div id=
"console"></div>