Reftest for bug 797231 (Clip path region is incorrect with direct2d). r=Bas.
authorJonathan Watt <jwatt@jwatt.org>
Sun, 14 Oct 2012 16:30:14 +0100
changeset 110359 779b6ddfb11838873084b8f79ff01cfbf232c399
parent 110358 43f597d00b4bc7e8ff0083ea5f222bf8d8e5858e
child 110360 3591fc9c515350562639d2bf95aa911a6f94b6e8
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersBas
bugs797231
milestone19.0a1
Reftest for bug 797231 (Clip path region is incorrect with direct2d). r=Bas.
layout/reftests/svg/clipPath-basic-06.svg
layout/reftests/svg/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/clipPath-basic-06.svg
@@ -0,0 +1,21 @@
+<!--
+     Any copyright is dedicated to the Public Domain.
+     http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<svg xmlns="http://www.w3.org/2000/svg"
+     xmlns:xlink="http://www.w3.org/1999/xlink">
+
+  <title>Testcase for non-rectilinear clipPath</title>
+
+  <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=797231 -->
+
+  <clipPath id="cp">
+    <ellipse cx="60" cy="60" rx="60" ry="60"/>
+  </clipPath>
+
+  <rect width="100%" height="100%" fill="lime"/>
+  <circle cx="60" cy="60" r="58" fill="red"/>
+  <rect width="200" height="200" fill="lime" clip-path="url(#cp)"/>
+
+</svg>
+
--- a/layout/reftests/svg/reftest.list
+++ b/layout/reftests/svg/reftest.list
@@ -30,16 +30,17 @@ include svg-integration/reftest.list
 == clip-02b.svg clip-02-ref.svg
 == clipPath-advanced-01.svg pass.svg
 fuzzy-if(/^Windows\x20NT\x206\.1/.test(http.oscpu),1,2) == clipPath-and-shape-rendering-01.svg clipPath-and-shape-rendering-01-ref.svg # bug 614840
 == clipPath-basic-01.svg pass.svg
 == clipPath-basic-02.svg pass.svg
 == clipPath-basic-03.svg pass.svg
 == clipPath-basic-04.svg pass.svg
 == clipPath-basic-05.svg pass.svg
+== clipPath-basic-06.svg pass.svg
 == clipPath-winding-01.svg pass.svg
 == clip-surface-clone-01.svg clip-surface-clone-01-ref.svg
 == conditions-01.svg pass.svg
 == conditions-02.svg pass.svg
 == conditions-03.svg pass.svg
 == conditions-04.svg pass.svg
 == conditions-05.svg about:blank
 == conditions-06.svg pass.svg