summaryrefslogtreecommitdiffstats
path: root/layout/svg/crashtests/709920-1.svg
blob: 5f251553075f53580f54ef5cb0e0880200555709 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<svg xmlns="http://www.w3.org/2000/svg"
     class="reftest-wait">
  <!-- Test to be sure that a zero-sized-in-one-dimension viewBox doesn't
       make us fail assertions. -->
  <script>
    document.addEventListener("MozReftestInvalidate", waitAndFinish, false);

    function waitAndFinish() {
      // Sadly, MozReftestInvalidate fires sooner than PaintPattern here, so
      // we need to wait a little bit to give PaintPattern a chance to hit
      // this bug.
      setTimeout(finish, 100);
    }

    function finish() {
      document.documentElement.removeAttribute("class");
    }
  </script>
  <pattern id="test" viewBox="0 0 1 0">
    <rect/>
  </pattern>
  <rect width="200" height="200" fill="url(#test)"/>
</svg>