Bug 1392235, part 2 - Add a reftest for SVG mask reference loops. r=longsonr
☠☠ backed out by 4fbe6972d297 ☠ ☠
authorJonathan Watt <jwatt@jwatt.org>
Tue, 22 Aug 2017 22:20:53 +0100
changeset 429103 af8cb3153052d9ea583c96bf2723630d546715b1
parent 429102 f574c304f748b44a501a0cde67e4d34174b348a2
child 429104 281a5532ea19ff3c90e3899031059b258104d6db
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslongsonr
bugs1392235
milestone57.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 1392235, part 2 - Add a reftest for SVG mask reference loops. r=longsonr
layout/reftests/svg/mask-ref-loop-01.svg
layout/reftests/svg/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/mask-ref-loop-01.svg
@@ -0,0 +1,20 @@
+<!--
+     Any copyright is dedicated to the Public Domain.
+     http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<svg xmlns="http://www.w3.org/2000/svg">
+
+  <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=1392235 -->
+
+  <title>Test handling of simple mask reference loop</title>
+
+  <mask id="mask" x="20" y="20" width="100" height="100"
+        maskUnits="userSpaceOnUse" maskContentUnits="userSpaceOnUse">
+    <rect x="20" y="20" width="100" height="100" fill="white" mask="url(#mask)"/>
+  </mask>
+
+  <rect width="100%" height="100%" fill="lime"/>
+  <rect width="140" height="140" fill="red" mask="url(#mask)"/>
+  <rect x="20" y="20" width="100" height="100" fill="lime"/>
+
+</svg>
--- a/layout/reftests/svg/reftest.list
+++ b/layout/reftests/svg/reftest.list
@@ -264,16 +264,17 @@ fuzzy-if(skiaContent,1,800000) == marker
 fuzzy-if(skiaContent,1,100) == marker-viewBox-01.svg marker-viewBox-01-ref.svg
 fuzzy-if(skiaContent,1,100) == marker-orientation-01.svg marker-orientation-01-ref.svg
 fuzzy-if(skiaContent,1,5) pref(svg.marker-improvements.enabled,true) == marker-orientation-02.svg marker-orientation-02-ref.svg
 == marker-orientation-03.svg pass.svg
 == marker-orientation-04.svg pass.svg
 
 fuzzy(28,28) == mask-and-clipPath.html mask-and-clipPath-ref.html
 == mask-and-clipPath-2.svg pass.svg
+== mask-ref-loop-01.svg pass.svg
 == mask-basic-01.svg pass.svg
 fuzzy-if(skiaContent,1,10000) == mask-basic-02.svg mask-basic-02-ref.svg
 == mask-basic-03.svg pass.svg
 == mask-basic-04.svg pass.svg
 == mask-basic-05.svg pass.svg
 == mask-containing-masked-content-01.svg pass.svg
 == mask-contains-inner-svg-01.svg pass.svg
 == mask-contains-inner-svg-02.svg pass.svg