2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
5 <svg xmlns=
"http://www.w3.org/2000/svg" version=
"1.1"
7 xmlns:
xlink=
"http://www.w3.org/1999/xlink">
8 <title>Testing that dynamic changes to the clipPathUnits are reflected in the clipPath
</title>
11 <clipPath id=
"clip1" clipPathUnits=
"objectBoundingBox">
12 <rect width=
".1" height=
".1"/>
16 <rect width=
"100%" height=
"100%" fill=
"lime"/>
18 <g transform=
"scale(1000)">
19 <rect x=
".2" y=
".2" width=
".6" height=
".6" fill=
"red" clip-path=
"url(#clip1)"/>
23 document.addEventListener(
"MozReftestInvalidate", doTest, false);
24 setTimeout(doTest,
4000); // fallback for running outside reftest
27 var clip1 = document.getElementById(
"clip1");
28 clip1.clipPathUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE;
30 document.documentElement.removeAttribute(
"class");