summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/489868-1.svg
blob: e9d91e76acdda79f1bc52097dc2a6e1e811f07ed (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
29
30
31
32
33
34
<svg xmlns:xlink="http://www.w3.org/1999/xlink" 
     xmlns:html="http://www.w3.org/1999/xhtml"
     xmlns="http://www.w3.org/2000/svg" 
     class="reftest-wait">

<html:style>
  .gencon:after { content: counter(chicken); }
</html:style>

<script type="text/javascript">

var dc;
var defs;

function boom()
{
  var define = document.getElementById("define");
  define.setAttribute("class", "gencon");
  document.documentElement.removeAttribute("class");
}

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

</script>

<defs id="defs">
  <g id="define">
    <rect x="0" y="0" width="75" height="75" fill="green"/>
  </g>
</defs>

<use xlink:href="#define" x="20" y="20" id="use" />

</svg>