summaryrefslogtreecommitdiffstats
path: root/layout/reftests/webcomponents/shadow-style-1.html
blob: cdc00eee4a9c0972d7e01f758b702d1702de9c69 (plain)
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE html>
<body>
<style>
body { color: red; }
</style>
<script>
var div = document.createElement("div");
var shadow = div.attachShadow({ mode: "open" });
shadow.innerHTML = '<style>p { color: green; }</style><p>This should be green.</p>';
document.body.appendChild(div);
</script>