Bug 1919788 - LSNG: Always acquire a directory lock for PreparedDatastoreOp; r=dom...
[gecko.git] / layout / reftests / svg / dynamic-clipPath-clip-rule-01.svg
blobf6b19bad843242ae5e40f5023890cd618fa82744
1 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
4 -->
5 <svg version="1.1" xmlns="http://www.w3.org/2000/svg"
6 xmlns:xlink="http://www.w3.org/1999/xlink" class="reftest-wait">
7 <title>Testcase for dynamic changes to clip-rule</title>
8 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=1077993 -->
9 <script>
11 function doTest() {
12 document.getElementById("p2").setAttribute("style", "clip-rule: winding;");
13 document.documentElement.removeAttribute("class");
16 window.addEventListener("MozReftestInvalidate", doTest, false);
17 window.setTimeout(doTest, 4000); // fallback for running outside reftest
19 </script>
20 <defs>
21 <clipPath id="p2" style="clip-rule:evenodd">
22 <path
23 d="M100,50 l0,150 50,0 0,-100 -100,0 0,50 150,0 0,-50 -50,0 0,-50 z"/>
24 </clipPath>
25 </defs>
26 <rect width="100%" height="100%" fill="lime"/>
27 <path fill-rule="winding" fill="red"
28 d="M100,50 l0,150 50,0 0,-100 -100,0 0,50 150,0 0,-50 -50,0 0,-50 z"/>
30 <rect width="100%" height="100%" fill="lime" clip-path="url(#p2)"/>
31 </svg>