bug 1269845 - bg-color and draw-region reftests; draft
authorCJKu <cku@mozilla.com>
Fri, 06 May 2016 17:58:13 +0800
changeset 364257 04fc8f474c4f540b81690bc5001d95800952d4bf
parent 363870 e5a10bc7dac4ee2453d8319165c1f6578203eac7
child 364258 7efbb4f74dcf6c35830ba581c948cfab745d5d60
push id17400
push usercku@mozilla.com
push dateFri, 06 May 2016 10:02:31 +0000
bugs1269845
milestone49.0a1
bug 1269845 - bg-color and draw-region reftests; MozReview-Commit-ID: 6kh90vowpi5
layout/reftests/backgrounds/background-clip-text-1f.html
layout/reftests/backgrounds/background-clip-text-1g.html
layout/reftests/backgrounds/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/backgrounds/background-clip-text-1f.html
@@ -0,0 +1,25 @@
+<!doctype HTML>
+<html>
+  <head>
+    <title>background-clip: text</title>
+    <style>
+      div.out {
+        width: 500px;
+        height: 300px;
+        margin: 0px;
+        background-image: linear-gradient(green, green);
+        background-clip: text;
+        color: transparent;
+        font-size: 100px;
+        font-family: serif;
+      }
+    </style>
+  </head>
+  <body style="margin: 0px;">
+    <div style="height: 50px"></div>
+    <div class="out">
+      TEXT clip
+      <div style="display:inline-block; width:0px; height:150px;"/>
+    </div>
+  </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/backgrounds/background-clip-text-1g.html
@@ -0,0 +1,24 @@
+<!doctype HTML>
+<html>
+  <head>
+    <title>background-clip: text</title>
+    <style>
+      div.out {
+        width: 500px;
+        height: 300px;
+        margin: 0px;
+        background-color: green;
+        background-clip: text;
+        color: transparent;
+        font-size: 100px;
+        font-family: serif;
+      }
+    </style>
+  </head>
+  <body style="margin: 0px;">
+    <div class="out">
+      TEXT clip
+      <div style="display:inline-block; width:0px; height:200px;"/>
+    </div>
+  </body>
+</html>
--- a/layout/reftests/backgrounds/reftest.list
+++ b/layout/reftests/backgrounds/reftest.list
@@ -177,9 +177,11 @@ fuzzy-if(skiaContent,1,8) == background-
 
 fuzzy(30,474) fuzzy-if(skiaContent,31,474) == background-tiling-zoom-1.html background-tiling-zoom-1-ref.html
 
 pref(layout.css.background-clip-text.enabled,true) fuzzy-if(winWidget,1,44) == background-clip-text-1a.html background-clip-text-1-ref.html
 pref(layout.css.background-clip-text.enabled,true) fuzzy-if(winWidget,1,44) == background-clip-text-1b.html background-clip-text-1-ref.html
 pref(layout.css.background-clip-text.enabled,true) fuzzy-if(winWidget,1,44) == background-clip-text-1c.html background-clip-text-1-ref.html
 pref(layout.css.background-clip-text.enabled,true) fuzzy-if(winWidget,1,44) == background-clip-text-1d.html background-clip-text-1-ref.html
 pref(layout.css.background-clip-text.enabled,true) fuzzy-if(winWidget,1,44) == background-clip-text-1e.html background-clip-text-1-ref.html
+pref(layout.css.background-clip-text.enabled,true) fuzzy-if(winWidget,1,44) == background-clip-text-1f.html background-clip-text-1-ref.html
+pref(layout.css.background-clip-text.enabled,true) fuzzy-if(winWidget,1,44) == background-clip-text-1g.html background-clip-text-1-ref.html
 pref(layout.css.background-clip-text.enabled,false) != background-clip-text-1a.html background-clip-text-1-ref.html