summaryrefslogtreecommitdiffstats
path: root/layout/reftests/webcomponents/style-sharing.html
blob: 0a1e3c95c48586f165b3e7756a08a92d75bbe492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!doctype html>
<div id="host"></div>
<script>
  let root = host.attachShadow({mode: 'open'});
  root.innerHTML = `
    <style>
      #test {
        color: green;
      }
    </style>
    <span id="test">Should be green</span>
    <span id="test2">Should not be green</span>
  `;
</script>