Bug 1449976 - Add regression test for fast-shadow clipping. r=jrmuizel
authorAlexis Beingessner <a.beingessner@gmail.com>
Tue, 03 Apr 2018 13:01:00 -0400
changeset 412021 c880e315c1b39277ce526108e988fc975839518a
parent 412020 d32c2aed28868ecd1d7aa1db701df5f07a256e07
child 412022 ebeb68db4cb54ca9efd755f9472184e143c11d25
push id33781
push userapavel@mozilla.com
push dateFri, 06 Apr 2018 14:39:11 +0000
treeherdermozilla-central@6792eee0c9c5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1449976
milestone61.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 1449976 - Add regression test for fast-shadow clipping. r=jrmuizel
layout/reftests/text-shadow/overflow-clip-ref.html
layout/reftests/text-shadow/overflow-clip.html
layout/reftests/text-shadow/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text-shadow/overflow-clip-ref.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<head></head>
+<body>
+  <div style="
+    width: 3em;
+    text-overflow: clip;
+    overflow: hidden;
+    white-space: nowrap;
+    color: red;">MMMMMM
+  </div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text-shadow/overflow-clip.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<!--
+checks that unblurred text-shadows are
+actually clipped by text-overflow: clip
+-->
+<html>
+<head></head>
+<body>
+  <div style="
+    width: 3em;
+    text-overflow: clip;
+    overflow: hidden;
+    text-shadow: 3em 0px black;
+    white-space: nowrap;
+    color: red;">MMMMMM
+  </div>
+</body>
+</html>
--- a/layout/reftests/text-shadow/reftest.list
+++ b/layout/reftests/text-shadow/reftest.list
@@ -19,16 +19,17 @@ random-if(Android) == basic-negcoord.xul
 == standards-decor-noblur.html standards-decor-noblur-ref.html
 == padding-decoration.html padding-decoration-ref.html
 == textindent.html textindent-ref.html
 == lineoverflow.html lineoverflow-ref.html
 
 == overflow-not-scrollable-1.html overflow-not-scrollable-1-ref.html
 == overflow-not-scrollable-1.html overflow-not-scrollable-1-ref2.html
 == overflow-not-scrollable-2.html overflow-not-scrollable-2-ref.html
+== overflow-clip.html overflow-clip-ref.html
 
 needs-focus != text-shadow-selected-1.html text-shadow-selected-1-notref.html
 fails-if(Android) fuzzy-if(skiaContent&&!Android,1,1000) needs-focus == text-shadow-selected-1.html text-shadow-selected-1-ref.html # different foreground selection color on Android
 needs-focus != text-shadow-selected-2.html text-shadow-selected-2-notref.html
 fails-if(Android) fuzzy-if(skiaContent&&!Android,1,1400) needs-focus == text-shadow-selected-2.html text-shadow-selected-2-ref.html # different foreground selection color on Android
 
 # bug 692744
 fuzzy-if(webrender,19,2872) == text-shadow-on-space-1.html text-shadow-on-space-1-ref.html