summaryrefslogtreecommitdiff
path: root/layout/svg/crashtests/338312-1.xhtml
blob: 5a751a2ae0b62d2a0fc120a8d8db55b82a8e81a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>


function boom()
{
  document.getElementById("foo").appendChild(document.getElementById("bar"));
}

window.addEventListener("load", boom, false);

</script>
</head>

<body>

  <div id="foo"></div>

  <svg xmlns="http://www.w3.org/2000/svg">
    <defs>
      <linearGradient id="grad1"/>
    </defs>
    <rect id="bar" style="fill:url(#grad1);" />  
  </svg>

</body>
</html>