summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/layout/svg-use-symbol-path-print.html
blob: c671a8413af2401727e7adfd79ad1157ad49f7a3 (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
<!doctype html>
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1843883">
<link rel="match" href="svg-use-symbol-path-print-ref.html">
<html>
<head>
<style>
 body { margin: 0 }
</style>
</head>
<body>
<!-- Should see a blue square inside the top left quarter of a purple square -->
<svg width=200 height=200 viewBox="0 0 200 200">
  <defs>
    <symbol id="r" viewBox="0 0 200 200">
      <path fill="blue">
        <set attributeName="d" to="M0,0 L100,0 L100,100 L0,100 Z" fill="freeze"/>
      </path>
    </symbol>
  </defs>
  <rect fill="purple" width=100 height=100 />
  <use href="#r" width="100" height="100" />
</svg>
</body>
</html>