Bug 1325865 - Part 2. Reftest. r=longsonr, a=jcristau
authorcku <cku@mozilla.com>
Fri, 13 Jan 2017 17:30:38 +0800
changeset 353708 e61d9658f6204021dfe837fd6870e6666290c1d7
parent 353707 0935fdad7f1f7fd9cff888b7bcacc0d0d0b756b0
child 353709 e8bc61cac015fe21421637173e373ba72e58c973
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslongsonr, jcristau
bugs1325865
milestone52.0a2
Bug 1325865 - Part 2. Reftest. r=longsonr, a=jcristau MozReview-Commit-ID: 6qOX78eco1d
layout/reftests/svg/mask-contains-inner-svg-01.svg
layout/reftests/svg/mask-contains-inner-svg-02.svg
layout/reftests/svg/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/mask-contains-inner-svg-01.svg
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg">
+  <defs>
+    <mask id="myMask">
+      <svg x="50%" overflow="visible">
+        <polygon fill="white" points="-50 0 50 0 50 100 -50 100"/>
+      </svg>
+    </mask>
+  </defs>
+  <rect width="100%" height="100%" fill="lime"/>
+  <circle cx="50%" cy="50" r="40" fill="red"/>
+  <rect mask="url(#myMask)" width="100%" height="100%" fill="lime"/>
+</svg>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/mask-contains-inner-svg-02.svg
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg">
+  <defs>
+    <mask id="myMask">
+      <svg x="25%" overflow="visible">
+        <svg x="25%" overflow="visible">
+          <polygon fill="white" points="-50 0 50 0 50 100 -50 100"/>
+        </svg>
+      </svg>
+    </mask>
+  </defs>
+  <rect width="100%" height="100%" fill="lime"/>
+  <circle cx="50%" cy="50" r="40" fill="red"/>
+  <rect mask="url(#myMask)" width="100%" height="100%" fill="lime"/>
+</svg>
--- a/layout/reftests/svg/reftest.list
+++ b/layout/reftests/svg/reftest.list
@@ -453,8 +453,11 @@ fuzzy(1,32400) == clipPath-on-outflowEle
 fuzzy(1,32400) == clipPath-on-outflowElement-02b.html clipPath-on-outflowElement-02-ref.html
 default-preferences
 
 == mask-on-outflowElement-01a.html clipPath-on-outflowElement-01-ref.html
 == mask-on-outflowElement-01b.html clipPath-on-outflowElement-01-ref.html
 
 == clipPath-and-mask-on-outflowElement-01a.html clipPath-on-outflowElement-01-ref.html
 == clipPath-and-mask-on-outflowElement-01b.html clipPath-on-outflowElement-01-ref.html
+
+== mask-contains-inner-svg-01.svg pass.svg
+== mask-contains-inner-svg-02.svg pass.svg