Bug 725918 - tests for fill and stroke on text
authorRobert Longson <longsonr@gmail.com>
Sat, 18 Feb 2012 16:05:21 +0000
changeset 87164 161d2a62a56345c96aea714e27791197d86d8b6f
parent 87163 d285af1007a9ce472a47284bec3d24d67d361142
child 87165 3b8ad7252ccbf8b718b6127cff9df0aba18c1c8f
push id22091
push userbmo@edmorley.co.uk
push dateMon, 20 Feb 2012 12:09:20 +0000
treeherdermozilla-central@b8e7474374d5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs725918
milestone13.0a1
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 725918 - tests for fill and stroke on text
layout/reftests/svg/fallback-color-04.svg
layout/reftests/svg/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/fallback-color-04.svg
@@ -0,0 +1,38 @@
+<!--
+     Any copyright is dedicated to the Public Domain.
+     http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<svg xmlns="http://www.w3.org/2000/svg" >
+
+  <title>Testcase for fallback colours</title>
+
+  <defs>
+    <filter id="erode">
+      <feMorphology operator="dilate" radius="3"/>
+    </filter>
+  </defs>
+
+  <rect x="0%" y="0%" width="100%" height="100%" fill="lime"/>
+  <text x="10" y="50" font-size="50"
+        stroke-width="8" stroke="red" fill="none">
+    A B
+  </text>
+  <text x="10" y="50" font-size="50"
+        stroke-width="8" stroke="url(#null) lime" fill="none" filter="url(#erode)">
+    A B
+  </text>
+  <text x="200" y="50" font-size="50" fill="red">
+    A B
+  </text>
+  <text x="200" y="50" font-size="50" fill="url(#null) lime" filter="url(#erode)">
+    A B
+  </text>
+  <text x="10" y="200" font-size="50" fill="red"
+        stroke-width="1" stroke="red">
+    A B
+  </text>
+  <text x="10" y="200" font-size="50" fill="url(#null) lime"
+        stroke-width="1" stroke="url(#null) lime" filter="url(#erode)">
+    A B
+  </text>
+</svg>
--- a/layout/reftests/svg/reftest.list
+++ b/layout/reftests/svg/reftest.list
@@ -116,16 +116,17 @@ random == dynamic-use-nested-01.svg dyna
 == use-02-extref.svg use-02-extref-ref.svg
 == use-extref-dataURI-01.svg pass.svg
 == use-children.svg pass.svg
 == fallback-color-01a.svg pass.svg
 == fallback-color-01b.svg pass.svg
 == fallback-color-02a.svg fallback-color-02-ref.svg
 == fallback-color-02b.svg fallback-color-02-ref.svg
 == fallback-color-03.svg pass.svg
+== fallback-color-04.svg pass.svg
 == filter-basic-01.svg pass.svg
 == filter-basic-02.svg pass.svg
 == filter-basic-03.svg pass.svg
 == filter-bounds-01.svg pass.svg
 == filter-bounds-02.svg pass.svg
 fails-if(Android) == filter-extref-differentOrigin-01.svg pass.svg # Bug 695385
 == filter-foreignObject-01.svg pass.svg
 == filter-in-mask-01.svg pass.svg