3 <script src=
"../../../resources/js-test.js"></script>
6 myDiv
= document
.body
.querySelector("div");
8 newStyle
= document
.createElement("style");
9 newStyle
.onload = function() { document
.body
.appendChild(myDiv
); }
10 document
.body
.appendChild(newStyle
);
12 newDiv
= document
.createElement("div");
13 // Inserting <iframe> into tree flushes the pending @onload event.
14 newDiv
.innerHTML
= "<iframe></iframe><style></style>";
15 myDiv
.createShadowRoot().appendChild(newDiv
);
17 debug("PASS unless crash");