2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
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 -->
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
21 <clipPath id=
"p2" style=
"clip-rule:evenodd">
23 d=
"M100,50 l0,150 50,0 0,-100 -100,0 0,50 150,0 0,-50 -50,0 0,-50 z"/>
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)"/>