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 p
= document
.getElementById("nested");
15 var li1
= document
.createElement("li");
16 li1
.innerText
= "Eight";
18 var li2
= document
.createElement("li");
19 li2
.innerText
= "Seven";
21 var item3
= document
.createElement("div");
22 item3
.innerText
= "Nine";
23 item3
.style
.display
= "list-item";
26 p
.insertBefore(li2
, li1
);
29 document
.getElementById("console").innerHTML
= dumpList(list
);
31 // Don't show the actual list as it is useless in the text-only mode.
32 list
.parentNode
.removeChild(list
);
36 <body onload=
"test()">
37 <p>This tests that list item markers are updated when adding new items as indirect children of the list element.
</p>
41 <div><li>Three
</li></div>
50 <div id=
"console"></div>