blob: 69f2ff2b4137a0c5aeedc85e8912f2ec34eb2fbb [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(.hello) { color: green; }';
var sandbox = document.getElementById('sandbox');
sandbox.appendChild(
createDOM('div', {'id': 'host'},
createShadowRoot(
shadowStyle,
createDOM('content')),
createDOM('div', {},
document.createTextNode('normal'),
createDOM('div', {'class': 'hello'},
document.createTextNode('green'))),
createDOM('div', {},
document.createTextNode('normal'),
createDOM('div', {'class': 'hello'},
document.createTextNode('green')))));
</script>
</body>
</html>