4 <div id=
"container"></div>
6 PASS: test did not crash.
9 /* Build the following shadow tree structure to verify that <svg> elements always
10 * receive a LayoutSVGRoot renderer when their parent is <foreignObject>:
17 function create_shadow() {
18 var root
= document
.getElementById('container').createShadowRoot();
19 var svg1
= document
.createElementNS('http://www.w3.org/2000/svg', 'svg');
20 root
.appendChild(svg1
);
21 var fo
= document
.createElementNS('http://www.w3.org/2000/svg', 'foreignObject');
23 var svg2
= document
.createElementNS('http://www.w3.org/2000/svg', 'svg');
27 if (window
.testRunner
) {
29 testRunner
.dumpAsText();