Bug 1385239 - Part 3. A test case of putting a translated filtered element inside an SVG mask. r=mstange
authorcku <cku@mozilla.com>
Wed, 23 Aug 2017 14:45:42 +0800
changeset 429681 114d87a3943b48a8cc1e9ca498bd7e7a306c95ac
parent 429680 9a6413d1fd0a02e60c109aa9f324288911f8ee52
child 429682 7da983d6888964b480d02bce7e83dea2b54da672
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)
reviewersmstange
bugs1385239
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 1385239 - Part 3. A test case of putting a translated filtered element inside an SVG mask. r=mstange MozReview-Commit-ID: AqSL8Gb5R46
layout/reftests/svg/filters/filter-in-mask-01.svg
layout/reftests/svg/filters/filter-in-mask-02.svg
layout/reftests/svg/filters/filter-in-mask.svg
layout/reftests/svg/filters/reftest.list
rename from layout/reftests/svg/filters/filter-in-mask.svg
rename to layout/reftests/svg/filters/filter-in-mask-01.svg
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/filters/filter-in-mask-02.svg
@@ -0,0 +1,18 @@
+<svg xmlns="http://www.w3.org/2000/svg">
+  <defs>
+    <filter x="0" y="0" width="1" height="1" id="solid">
+      <feFlood flood-color="black"/>
+    </filter>
+    <mask id="myMask">
+      <rect fill="white" width="100%" height="100%"/>
+      <g transform="translate(10000, 0)">
+        <rect fill="blue" width="100%" height="100%" filter="url(#solid)"/>
+      </g>
+    </mask>
+  </defs>
+  <!-- You should see pure lime color as background color of a whole page. -->
+  <rect fill="red" width="100%" height="100%"/>
+  <g mask="url(#myMask)">
+    <rect x="0" y="0" width="100%" height="100%" fill="lime"></rect>
+  </g>
+</svg>
\ No newline at end of file
--- a/layout/reftests/svg/filters/reftest.list
+++ b/layout/reftests/svg/filters/reftest.list
@@ -63,17 +63,18 @@ 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
+random-if(winWidget) == filter-in-mask-01.svg pass.svg # bug 1356139
+== filter-in-mask-02.svg pass.svg
 == 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