tml/resources/common.js"></script>
<style>
div {
  width: 100px;
  height: 100px;
  background: green;
}
</style>
</head>
<body>
<p>Test passes if following box is green.</p>
<div id="shadow-host"></div>
<script>
var shadowHost = document.getElementById('shadow-host');
var shadowRoot = shadowHost.attachShadow({mode: 'open'});
var style = document.createElement('style');
style.innerHTML = 'div { background: red }';

shadowRoot.appendChild(style);
</script>
</body>
</html>
