Bug 1304011 - Part 5. Test case. r=mstange
authorcku <cku@mozilla.com>
Wed, 21 Sep 2016 15:30:40 +0800
changeset 417636 f57a57175a4b04ed5d38a75564394fa6e163295c
parent 417635 f64615811ca897e000b4bccd8a14928f5f0674a5
child 417637 8d425964393b4ac3cb2722660380be122b2687fb
push id30444
push userbmo:pbrosset@mozilla.com
push dateMon, 26 Sep 2016 14:07:09 +0000
reviewersmstange
bugs1304011
milestone52.0a1
Bug 1304011 - Part 5. Test case. r=mstange MozReview-Commit-ID: HSZiLRZKtKO
layout/reftests/w3c-css/submitted/masking/mask-image-6-ref.html
layout/reftests/w3c-css/submitted/masking/mask-image-6.html
layout/reftests/w3c-css/submitted/masking/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/masking/mask-image-6-ref.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <title>CSS Masking: mask on inline element</title>
+    <link rel="author" title="CJ Ku" href="mailto:cku@mozilla.com">
+    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
+    <style type="text/css">
+      div {
+        width: 100px;
+        height: 100px;
+        font-size: 100px;
+        line-height: 100px;
+      }
+
+      div.mask-by-png {
+        mask-image: url(support/transparent-100x50-blue-100x50.png);
+      }
+    </style>
+  </head>
+  <body>
+    <div class="mask-by-png">A</div>
+    <div class="mask-by-png">B</div>
+  </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/masking/mask-image-6.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <title>CSS Masking: mask on inline element</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-6-ref.html">
+    <meta name="assert" content="Test checks whether mask on inline elemnt works correctly or not.">
+    <style type="text/css">
+      div {
+        width: 100px;
+        height: 100px;
+      }
+      span {
+        font-size: 100px;
+        line-height: 100px;
+        mask-image: url(support/transparent-100x50-blue-100x50.png);
+        mask-repeat: repeat;
+      }
+
+    </style>
+  </head>
+  <body>
+    <div>
+      <span>A B</span>
+    </div>
+  </body>
+</html>
--- a/layout/reftests/w3c-css/submitted/masking/reftest.list
+++ b/layout/reftests/w3c-css/submitted/masking/reftest.list
@@ -24,16 +24,17 @@ fuzzy-if(skiaContent||winWidget,1,20000)
 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
 == 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
 
 # mask-position test cases
 == mask-position-1a.html mask-position-1-ref.html
 == mask-position-1b.html mask-position-1-ref.html
 == mask-position-1c.html mask-position-1-ref.html