Bug 614272: reftest for this bug. a=tests
authorDaniel Holbert <dholbert@cs.stanford.edu>
Mon, 10 Jan 2011 21:57:22 -0800
changeset 60273 c4391289e2bb3d777bb5487c71d956fdd24ffc6a
parent 60272 4e5759d65e00928927a99b5960d46b83a3475e0c
child 60274 1d5cbf9617ea03b39f6fe532aa646766bbe4682d
push id17906
push userdholbert@mozilla.com
push dateTue, 11 Jan 2011 06:05:32 +0000
treeherdermozilla-central@d9ec3e791cee [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstests
bugs614272
milestone2.0b10pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 614272: reftest for this bug. a=tests
layout/reftests/bugs/614272-1-ref.svg
layout/reftests/bugs/614272-1.svg
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/614272-1-ref.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg"
+     xmlns:xlink="http://www.w3.org/1999/xlink">
+ <image xlink:href="solidblue.png" width="50" height="50" x="25" y="50"/>
+</svg>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/614272-1.svg
@@ -0,0 +1,44 @@
+<svg class="reftest-wait"
+     xmlns="http://www.w3.org/2000/svg"
+     xmlns:xlink="http://www.w3.org/1999/xlink"
+     onload="setTimeout(go, 0);">
+<script>
+  function setMatrixForElem(id, matrix) {
+    var elem = document.getElementById(id);
+    elem.setAttribute("transform", "matrix("+matrix+")");
+  }
+
+  function go() {
+    // This moves image1 completely offscreen
+    setMatrixForElem("image1", "0.5 -1 0 1 0 -30");
+
+    // This flattens image2 to take up 0 space
+    setMatrixForElem("image2", "1    0 0 0 0 0");
+
+    // NOTE: The third image should be unaffected by the above
+    // and should still render.
+
+    document.documentElement.removeAttribute('class');
+  }
+</script>
+<defs>
+ <path id="P1" d="M 0   50 h50 v-50 h-50 z"/>
+ <path id="P2" d="M 50 100 h50 v-50 h-50 z"/>
+ <path id="P3" d="M 0  100 h50 v-50 h-50 z"/>
+ <clipPath id="Q1"><use x="25" xlink:href="#P1"/></clipPath>
+ <clipPath id="Q2"><use x="25" xlink:href="#P2"/></clipPath>
+ <clipPath id="Q3"><use x="25" xlink:href="#P3"/></clipPath>
+</defs>
+
+<image xlink:href="solidblue.png" id="image1"
+       width="100" height="100"
+       x="25"  clip-path="url(#Q1)"/>
+
+<image xlink:href="solidblue.png" id="image2"
+       width="100" height="100"
+       x="25" y="50" clip-path="url(#Q2)"/>
+
+<image xlink:href="solidblue.png"
+       width="100" height="100"
+       x="25" clip-path="url(#Q3)"/>
+</svg>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1550,12 +1550,13 @@ fails-if(!haveTestPlugin) == 599476.html
 == 613433-1.html 613433-2-ref.html
 == 613433-1.html 613433-3-ref.html
 == 613433-2.html 613433-1-ref.html
 == 613433-2.html 613433-2-ref.html
 == 613433-2.html 613433-3-ref.html
 == 613433-3.html 613433-1-ref.html
 == 613433-3.html 613433-2-ref.html
 == 613433-3.html 613433-3-ref.html
+== 614272-1.svg  614272-1-ref.svg
 HTTP(..) == 615121-1.html 615121-1-ref.html
 HTTP(..) != 615121-2.html 615121-2-notref.html
 == 617242-1.html 617242-1-ref.html
 != 618071.html 618071-notref.html