blob: 94713d60b23a73b066d8e4bf56b20c2d71237b5b [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 = 'this-does-not-match::-webkit-distributed(div) { color: green; }'
+ 'p::-webkit-distributed(div) { color: green; }'
+ 'div::-webkit-distributed(div) { color: green; }';
var sandbox = document.getElementById('sandbox');
sandbox.appendChild(
createDOM('div', {'id': 'host'},
createShadowRoot(
shadowStyle,
createDOM('p', {},
document.createTextNode('normal')),
createDOM('div', {},
createDOM('content'))),
createDOM('div', {'id': 'host-child'},
document.createTextNode('normal'))));
</script>
</body>
</html>