| <script src="resources/dump-list.js"></script> |
| var list = document.getElementById("list"); |
| list.offsetTop; // Force a relayout. |
| var nestedList = document.getElementById("nested-list"); |
| var items = nestedList.children.length; |
| for (var i = 0; i < items; ++i) |
| nestedList.removeChild(nestedList.firstElementChild); |
| document.getElementById("console").innerHTML = dumpList(list); |
| // Don't show the actual list as it is useless in the text-only mode. |
| list.parentNode.removeChild(list); |
| <p>This tests that list item markers do not change when removing existing items from a nested list.</p> |