1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/webcomponents/basic-insertion-point-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,21 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<head> 1.7 + <script> 1.8 + function tweak() { 1.9 + // div with style "border: 10px solid green" 1.10 + var shadowDiv = document.createElement("div"); 1.11 + shadowDiv.style.border = "10px solid green"; 1.12 + 1.13 + var insertionPoint = document.createElement("content"); 1.14 + shadowDiv.appendChild(insertionPoint); 1.15 + 1.16 + var shadowRoot = document.getElementById('outer').createShadowRoot(); 1.17 + shadowRoot.appendChild(shadowDiv); 1.18 + } 1.19 + </script> 1.20 +</head> 1.21 +<body onload="tweak()"> 1.22 +<div id="outer">Hello</div> 1.23 +</body> 1.24 +</html>