Bug 1346618 - Part 4. Test case. draft
authorcku <cku@mozilla.com>
Mon, 13 Mar 2017 11:19:49 +0800
changeset 502175 8de7f97b31ea75cba244c4962bd13b720145d356
parent 502174 8709d7eb8df63d0252936aec42fac3c8d3214c6c
child 550092 b50ec422ed2eb5e25c135ae6e444a6634674e1bc
push id50211
push userbmo:cku@mozilla.com
push dateTue, 21 Mar 2017 11:23:32 +0000
bugs1346618
milestone55.0a1
Bug 1346618 - Part 4. Test case. MozReview-Commit-ID: FVEqDh9E5DP
layout/reftests/w3c-css/submitted/masking/mask-opacity-1f.html
layout/reftests/w3c-css/submitted/masking/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/masking/mask-opacity-1f.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <title>CSS Masking: mask-image: mask with opacity</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-opacity-1-ref.html">
+    <meta name="assert" content="Test checks whether apply opacity to masked element correctly or not.">
+    <svg height="0">
+      <mask id="myMask" x="0" y="0" width="100" height="100" >
+        <rect x="0" y="0" width="50" height="50" style="stroke:none; fill: #ffffff"/>
+      </mask>
+    </svg>
+    <style type="text/css">
+      div {
+        position: absolute;
+        left: 10px;
+        top: 10px;
+        background-color: rgb(0,0,255);
+        width: 100px;
+        height: 100px;
+        mask-image: url(support/blue-100x50-transparent-100x50.svg);
+        opacity: 0.5;
+      }
+    </style>
+  </head>
+  <body>
+    <div></div>
+  </body>
+</html>
--- a/layout/reftests/w3c-css/submitted/masking/reftest.list
+++ b/layout/reftests/w3c-css/submitted/masking/reftest.list
@@ -109,10 +109,11 @@ fuzzy-if(winWidget,9,98) == clip-path-ge
 default-preferences
 
 # mask with opacity test cases
 fuzzy(1,5000) == mask-opacity-1a.html mask-opacity-1-ref.html
 fuzzy(1,5000) == mask-opacity-1b.html mask-opacity-1-ref.html
 fuzzy(1,5000) == mask-opacity-1c.html mask-opacity-1-ref.html
 fuzzy(1,5000) == mask-opacity-1d.html mask-opacity-1-ref.html
 fuzzy(1,5000) == mask-opacity-1e.html mask-opacity-1-ref.html
+fuzzy(1,5000) == mask-opacity-1f.html mask-opacity-1-ref.html
 
 == clip-path-mix-blend-mode-1.html clip-path-mix-blend-mode-1-ref.html