Bug 537623 - Part 2. reftests for filter/clip-path/mask painting in an use element. r=longsonr+218550
authorcku <cku@mozilla.com>
Tue, 17 Jan 2017 01:46:22 +0800
changeset 374779 71db159b7fd98359be5f9ffe9ff93d8f29adce50
parent 374778 5db57e49db29a6218aed3ba3bcbbae0ce897bdcf
child 374780 da2986c59fa37763c9e5d0df7262bbee3b6867e2
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslongsonr
bugs537623, 218550
milestone53.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 537623 - Part 2. reftests for filter/clip-path/mask painting in an use element. r=longsonr+218550 MozReview-Commit-ID: 6fFEhKHIK0U
layout/reftests/svg/clip-use-element-01.svg
layout/reftests/svg/clip-use-element-02.svg
layout/reftests/svg/filter-use-element-01.svg
layout/reftests/svg/mask-use-element-01.svg
layout/reftests/svg/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/clip-use-element-01.svg
@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg"
+     xmlns:xlink="http://www.w3.org/1999/xlink">
+  <defs>
+    <clipPath id="myClipPath">
+      <rect x="100" y="100" width="100" height="100"/>
+    </clipPath>
+    <rect x="0" y="0" width="100" height="100" fill="red" id="abc"/>
+  </defs>
+  <rect x="0" y="0" width="100%" height="100%" fill="lime"/>
+  <use  xlink:href="#abc"
+        x="100" y="100" clip-path="url(#myClipPath)"/>
+</svg>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/clip-use-element-02.svg
@@ -0,0 +1,13 @@
+<svg xmlns="http://www.w3.org/2000/svg"
+     xmlns:xlink="http://www.w3.org/1999/xlink">
+  <defs>
+    <rect x="100" y="100" width="100" height="100" fill="red" id="def"/>
+    <clipPath id="myClipPath">
+      <use  xlink:href="#def"/>
+    </clipPath>
+    <rect x="0" y="0" width="100" height="100" fill="red" id="abc"/>
+  </defs>
+  <rect x="0" y="0" width="100%" height="100%" fill="lime"/>
+  <use  xlink:href="#abc"
+        x="100" y="100" clip-path="url(#myClipPath)"/>
+</svg>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/filter-use-element-01.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg"
+     xmlns:xlink="http://www.w3.org/1999/xlink">
+  <defs>
+    <filter id="myFilter" filterUnits="userSpaceOnUse" x="100" y="100" width="100" height="100">
+      <feGaussianBlur stdDeviation="20 10"/>
+    </filter>
+    <rect x="0" y="0" width="100" height="100" fill="red" id="abc"/>
+  </defs>
+  <rect x="0" y="0" width="100%" height="100%" fill="lime"/>
+  <use  xlink:href="#abc" x="100" y="100" filter="url(#myFilter)"/>
+</svg>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/svg/mask-use-element-01.svg
@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg"
+     xmlns:xlink="http://www.w3.org/1999/xlink">
+  <defs>
+    <mask id="myMask">
+      <rect x="100" y="100" width="100" height="100" fill="white"/>
+    </mask>
+    <rect x="0" y="0" width="100" height="100" fill="red" id="abc"/>
+  </defs>
+  <rect x="0" y="0" width="100%" height="100%" fill="lime"/>
+  <use  xlink:href="#abc"
+        x="100" y="100" mask="url(#myMask)"/>
+</svg>
\ No newline at end of file
--- a/layout/reftests/svg/reftest.list
+++ b/layout/reftests/svg/reftest.list
@@ -464,8 +464,13 @@ default-preferences
 
 == paint-on-maskLayer-1a.html paint-on-maskLayer-1-ref.html
 == paint-on-maskLayer-1b.html paint-on-maskLayer-1-ref.html
 == paint-on-maskLayer-1c.html paint-on-maskLayer-1-ref.html
 
 fuzzy(71,817) == filter-on-continuation-box-01.html filter-on-continuation-box-ref.html
 == mask-contains-inner-svg-01.svg pass.svg
 == mask-contains-inner-svg-02.svg pass.svg
+
+== mask-use-element-01.svg pass.svg
+== clip-use-element-01.svg pass.svg
+== clip-use-element-02.svg pass.svg
+== filter-use-element-01.svg pass.svg