Bug 1349741 - Part 2: Reftest. r=mstange, a=gchang
authorcku <cku@mozilla.com>
Thu, 23 Mar 2017 14:40:10 +0800
changeset 375929 c7276ad300e89d501eaec13e86a57227c75ec330
parent 375928 9f51f12863d75798d9d8d38173faa70a7a7d9ac9
child 375930 fc6add581f8897bfc8a726766d23b1b1928ec1ac
push id11058
push userryanvm@gmail.com
push dateFri, 14 Apr 2017 20:06:37 +0000
treeherdermozilla-aurora@e53f7f1785eb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange, gchang
bugs1349741
milestone54.0a2
Bug 1349741 - Part 2: Reftest. r=mstange, a=gchang MozReview-Commit-ID: AOKD7BeAUNl
layout/reftests/svg/filters/filter-in-mask.svg
layout/reftests/svg/filters/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/filters/filter-in-mask.svg
@@ -0,0 +1,12 @@
+<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="-1 -1 1 1" preserveAspectRatio="xMidYMid slice">
+  <!-- filter effects region covers whole viewbox -->
+  <filter id="myFilter" filterUnits="userSpaceOnUse" x="-1" y="-1" width="1" height="1">
+    <feGaussianBlur stdDeviation="0"/>
+  </filter>
+  <!-- mask effects region covers whole viewbox, opaque white mask -->
+  <mask id="myMask" maskUnits="userSpaceOnUse" x="-1" y="-1" width="1" height="1">
+    <rect filter="url(#myFilter)" x="-1" y="-1" width="1" height="1" fill="#FFFFFF"/>
+  </mask>
+  <rect x="-1" y="-1" width="1" height="1" fill="red"/>
+  <rect mask="url(#myMask)" x="-1" y="-1" width="1" height="1" fill="lime"/>
+</svg>
\ No newline at end of file
--- a/layout/reftests/svg/filters/reftest.list
+++ b/layout/reftests/svg/filters/reftest.list
@@ -63,16 +63,17 @@ skip-if(d2d) == feGaussianBlur-cap-large
 == feTile-1.svg feTile-1-ref.svg
 == feTile-2.svg feTile-2-ref.svg
 
 # no tests for feTurbulence
 
 == filter-clipped-rect-01.svg pass.svg
 == filter-in-pattern-01.svg pass.svg
 fuzzy(5,67) != filter-in-pattern-02.svg filter-in-pattern-02-ref.svg
+random-if(winWidget) == filter-in-mask.svg pass.svg # bug 1356139
 == filter-inner-svg-01.svg pass.svg
 == filter-inner-svg-02.svg pass.svg
 == filter-inner-svg-03.svg pass.svg
 fails == filter-marked-line-01.svg pass.svg # bug 477704
 == filter-kernelUnitLength-01.svg filter-kernelUnitLength-01-ref.svg
 == filter-marked-line-02.svg pass.svg
 == filter-marked-line-03.svg pass.svg
 == filter-marked-line-04.svg pass.svg