gecko-dev/layout/reftests/webcomponents/style-sharing.html
Emilio Cobos Álvarez e907c7a1da Bug 1412251: Make style sharing look at XBL / Shadow DOM rules. r=bz
MozReview-Commit-ID: II6lk6OmSZU

--HG--
extra : rebase_source : 44af7047387b26f63b3960d9e1f4996f6677ad18
2017-10-28 01:48:08 +02:00

15 lines
281 B
HTML

<!doctype html>
<div id="host"></div>
<script>
let root = host.createShadowRoot();
root.innerHTML = `
<style>
#test {
color: green;
}
</style>
<span id="test">Should be green</span>
<span id="test2">Should not be green</span>
`;
</script>