summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1330051-ref.svg
blob: 78aa47e79f3462aa52c2acfe6070b47cdcfa710a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500" class="reftest-wait">
  <foreignObject width="500" height="500">
    <iframe xmlns="http://www.w3.org/1999/xhtml"
            srcdoc="A test">
    </iframe>
  </foreignObject>
  <script>
    frames[0].onload = function() {
      var doc = frames[0].document;
      let el = doc.createElement('div');
      el.innerHTML = "This should remain green";
      el.style.color = "green";
      doc.body.appendChild(el);
      document.documentElement.removeAttribute("class");
    }
  </script>
</svg>