blob: d243ca1c8c94f3268b64f70edd2126b07b0df01a [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="resources/shadow-dom.js"></script>
</head>
<body>
<div id="sandbox"></div>
<script>
var shadowStyle = document.createElement('style');
shadowStyle.innerHTML = 'content::-webkit-distributed(div) { color: green; }';
var sandbox = document.getElementById('sandbox');
sandbox.appendChild(
createDOM('div', {},
createShadowRoot(
shadowStyle,
createDOM('content')),
createDOM('div', {},
document.createTextNode('green'))));
</script>
</body>
</html>