Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
1 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
4 -->
5 <svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait">
7 <title>Testing that dynamic changes to preserveAspectRatio are reflected in the marker</title>
8 <script>
9 <![CDATA[
11 function doTest() {
12 m = document.getElementById("m1");
13 m.preserveAspectRatio.baseVal.align =
14 SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_NONE;
15 document.documentElement.removeAttribute("class");
16 }
18 document.addEventListener("MozReftestInvalidate", doTest, false);
19 setTimeout(doTest, 4000); // fallback for running outside reftest
21 ]]>
22 </script>
24 <defs>
25 <marker id="m1" orient="auto" markerUnits="userSpaceOnUse"
26 preserveAspectRatio="xMidYMid slice" viewBox="0 0 30 40" markerWidth="60" markerHeight="30">
27 <rect width="30" height="40" fill="red"/>
28 </marker>
29 </defs>
31 <rect width="100%" height="100%" fill="lime"/>
33 <line x1="30" x2="30" y1="10" y2="10" stroke="red" stroke-width="3" marker-end="url(#m1)"/>
35 <rect x="30" y="10" width="60" height="30" fill="lime"/>
36 </svg>