layout/reftests/webcomponents/dynamic-shadow-element-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/webcomponents/dynamic-shadow-element-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<head>
     1.7 +  <script>
     1.8 +    function tweak() {
     1.9 +      var oldestShadow = document.getElementById('outer').createShadowRoot();
    1.10 +      oldestShadow.innerHTML = 'Hello';
    1.11 +
    1.12 +      var olderShadow = document.getElementById('outer').createShadowRoot();
    1.13 +
    1.14 +      var youngerShadow = document.getElementById('outer').createShadowRoot();
    1.15 +      youngerShadow.innerHTML = '<div style="background-color:green"><shadow></shadow></div>';
    1.16 +
    1.17 +      olderShadow.innerHTML = '<shadow></shadow> World';
    1.18 +    }
    1.19 +  </script>
    1.20 +</head>
    1.21 +<body onload="tweak()">
    1.22 +<div id="outer">
    1.23 +  <div style="width:300px; height:100px; background-color:red;"></div>
    1.24 +</div>
    1.25 +</body>
    1.26 +</html>

mercurial