layout/reftests/webcomponents/basic-insertion-point-1.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     1 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4   <script>
     5     function tweak() {
     6       // div with style "border: 10px solid green"
     7       var shadowDiv = document.createElement("div");
     8       shadowDiv.style.border = "10px solid green";
    10       var insertionPoint = document.createElement("content");
    11       shadowDiv.appendChild(insertionPoint);
    13       var shadowRoot = document.getElementById('outer').createShadowRoot();
    14       shadowRoot.appendChild(shadowDiv);
    15     }
    16   </script>
    17 </head>
    18 <body onload="tweak()">
    19 <div id="outer">Hello</div>
    20 </body>
    21 </html>

mercurial