Bug 1319667 - Part 3. Test case for mask longhands on svg element. r=mstange
authorcku <cku@mozilla.com>
Wed, 23 Nov 2016 14:02:07 +0800
changeset 324060 d9b26b438895944ea6764976577436383de9e23d
parent 324059 3ab240e653d884b2e4df2263a78bf3adf81db317
child 324061 aceab4673889e2575c25bb5910a9784b2a8e1d1d
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersmstange
bugs1319667
milestone53.0a1
Bug 1319667 - Part 3. Test case for mask longhands on svg element. r=mstange MozReview-Commit-ID: HF1NiNPfzQs
layout/reftests/w3c-css/submitted/masking/mask-image-3i.html
layout/reftests/w3c-css/submitted/masking/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/masking/mask-image-3i.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <title>CSS Masking: mask-image: interleave SVG mask with image mask</title>
+    <link rel="author" title="CJ Ku" href="mailto:cku@mozilla.com">
+    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+    <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-mask-image">
+    <link rel="match" href="mask-image-3-ref.html">
+    <meta name="assert" content="Test checks whether SVG mask and image as mask layer works correctly or not.">
+    <svg height="0">
+      <mask id="mask1" x="0" y="0" width="1" height="1" >
+        <circle cx="50" cy="50" r="25" style="stroke:none; fill: #ffffff"/>
+      </mask>
+    </svg>
+    <style type="text/css">
+      rect {
+        fill: purple;
+        mask-image: url(#mask1), url(support/50x50-opaque-blue.svg);
+        mask-repeat: no-repeat, no-repeat;
+      }
+    </style>
+
+  </head>
+
+  <body>
+    <br>
+    <svg width="100" height="100">
+      <rect x="0" y="0" width="100" height="100"/>
+    </svg>
+  </body>
+</html>
--- a/layout/reftests/w3c-css/submitted/masking/reftest.list
+++ b/layout/reftests/w3c-css/submitted/masking/reftest.list
@@ -22,16 +22,17 @@ fuzzy-if(skiaContent||winWidget,1,20000)
 == mask-image-3a.html mask-image-3-ref.html
 == mask-image-3b.html mask-image-3-ref.html
 fuzzy-if(skiaContent||winWidget,1,43) == mask-image-3c.html mask-image-3-ref.html
 fuzzy-if(skiaContent||winWidget,1,43) == mask-image-3d.html mask-image-3-ref.html
 == mask-image-3e.html mask-image-3-ref.html
 fuzzy-if(skiaContent,50,50) == mask-image-3f.html mask-image-3-ref.html
 == mask-image-3g.html mask-image-3-ref.html
 pref(layout.css.clip-path-shapes.enabled,true) == mask-image-3h.html mask-image-3-ref.html
+fuzzy-if(skiaContent,71,203) == mask-image-3i.html mask-image-3-ref.html
 == mask-image-4a.html blank.html
 == mask-image-4b.html blank.html
 == mask-image-5.html mask-image-5-ref.html
 == mask-image-6.html mask-image-6-ref.html
 
 # mask-clip test cases
 == mask-clip-1.html mask-clip-1-ref.html