Bug 1519073 - Add a reftest to avoid regressing this in webrender. r=kats,botond
authorEmilio Cobos Álvarez <emilio@crisal.io>
Tue, 15 Jan 2019 09:14:31 +0000
changeset 513889 22fefdbe40ee485ea7de664ba054bcb3dd94cafa
parent 513888 5d0fef351a29306c1e46fbc70681ff1791cf6973
child 513890 654c9274673479fc772eef2f8a3002982e931a62
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats, botond
bugs1519073
milestone66.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 1519073 - Add a reftest to avoid regressing this in webrender. r=kats,botond Differential Revision: https://phabricator.services.mozilla.com/D16185
layout/reftests/async-scrolling/reftest.list
layout/reftests/async-scrolling/sticky-inside-fixed-1.html
layout/reftests/async-scrolling/sticky-inside-transform-1-ref.html
layout/reftests/async-scrolling/sticky-inside-transform-1.html
--- a/layout/reftests/async-scrolling/reftest.list
+++ b/layout/reftests/async-scrolling/reftest.list
@@ -40,16 +40,17 @@ skip-if(!asyncPan) == culling-1.html cul
 skip-if(!asyncPan) == position-fixed-iframe-1.html position-fixed-iframe-1-ref.html
 skip-if(!asyncPan) == position-fixed-iframe-2.html position-fixed-iframe-2-ref.html
 fuzzy-if(skiaContent,0-1,0-11300) skip-if(!asyncPan) == position-fixed-in-scroll-container.html position-fixed-in-scroll-container-ref.html
 fuzzy-if(Android,0-1,0-800) skip-if(!asyncPan) == position-fixed-inside-clip-path.html position-fixed-inside-clip-path-ref.html
 skip-if(!asyncPan) == position-fixed-inside-sticky-1.html position-fixed-inside-sticky-1-ref.html
 skip-if(!asyncPan) == position-fixed-inside-sticky-2.html position-fixed-inside-sticky-2-ref.html
 skip-if(!asyncPan) == position-fixed-inside-sticky-3.html position-fixed-inside-sticky-3-ref.html
 skip-if(!asyncPan) == sticky-inside-fixed-1.html sticky-inside-fixed-1-ref.html
+skip-if(!asyncPan) fails-if(!webrender) == sticky-inside-transform-1.html sticky-inside-transform-1-ref.html
 fuzzy(0-1,0-60000) skip-if(!asyncPan) == group-opacity-surface-size-1.html group-opacity-surface-size-1-ref.html
 fuzzy-if(Android,0-1,0-197) skip-if(!asyncPan) == position-sticky-transformed.html position-sticky-transformed-ref.html
 skip-if(!asyncPan) == offscreen-prerendered-active-opacity.html offscreen-prerendered-active-opacity-ref.html
 fuzzy-if(Android,0-6,0-4) fuzzy-if(skiaContent&&!Android,0-1,0-34) skip-if(!asyncPan) == offscreen-clipped-blendmode-1.html offscreen-clipped-blendmode-ref.html
 fuzzy-if(Android,0-6,0-4) skip-if(!asyncPan) == offscreen-clipped-blendmode-2.html offscreen-clipped-blendmode-ref.html
 fuzzy-if(Android,0-6,0-4) skip == offscreen-clipped-blendmode-3.html offscreen-clipped-blendmode-ref.html # bug 1251588 - wrong AGR on mix-blend-mode item
 fuzzy-if(Android,0-6,0-4) skip-if(!asyncPan) == offscreen-clipped-blendmode-4.html offscreen-clipped-blendmode-ref.html
 fuzzy-if(Android,0-7,0-4) skip-if(!asyncPan) == perspective-scrolling-1.html perspective-scrolling-1-ref.html
--- a/layout/reftests/async-scrolling/sticky-inside-fixed-1.html
+++ b/layout/reftests/async-scrolling/sticky-inside-fixed-1.html
@@ -1,11 +1,10 @@
 <!DOCTYPE html>
 <html reftest-async-scroll>
-<html>
 <head>
   <title>Testcase for Bug 1501342</title>
   <style>
     .panel {
       height:100%;
       overflow:hidden;
       position:fixed;
       right:0;
@@ -34,9 +33,9 @@
          reftest-displayport-x="0" reftest-displayport-y="0"
          reftest-displayport-w="800" reftest-displayport-h="2000"
          reftest-async-scroll-x="0" reftest-async-scroll-y="50">
       <div class="sticky"></div>
       <div class="content"></div>
     </div>
   </div>
 </body>
-</html>
\ No newline at end of file
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/async-scrolling/sticky-inside-transform-1-ref.html
@@ -0,0 +1,33 @@
+<!doctype html>
+<html>
+<meta charset="utf-8" />
+<style>
+html, body { margin: 0 }
+
+#scroll {
+  overflow-y: hidden;
+  height: 100vh;
+  background: green;
+}
+#transform {
+  transform: translateX(100%) rotate(90deg);
+  height: 600px;
+  position: relative;
+  top: -300px;
+  transform-origin: 0% 0%;
+  background: #ff0;
+}
+#sticky {
+  position: relative;
+  top: 300px;
+  background: #0ff;
+  height: 100px;
+}
+</style>
+<div id="scroll">
+  <div id="transform">
+    <div id="sticky"></div>
+  </div>
+  <div id="content" style="height: 2000px;"></div>
+</div>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/async-scrolling/sticky-inside-transform-1.html
@@ -0,0 +1,34 @@
+<!doctype html>
+<html reftest-async-scroll>
+<meta charset="utf-8" />
+<style>
+html, body { margin: 0 }
+
+#scroll {
+  overflow-y: hidden;
+  height: 100vh;
+  background: green;
+}
+#transform {
+  transform: translateX(100%) rotate(90deg);
+  height: 600px;
+  transform-origin: 0% 0%;
+  background: #ff0;
+}
+#sticky {
+  position: sticky;
+  top: 0;
+  background: #0ff;
+  height: 100px;
+}
+</style>
+<div id="scroll"
+   reftest-displayport-x="0" reftest-displayport-y="0"
+   reftest-displayport-w="800" reftest-displayport-h="2000"
+   reftest-async-scroll-x="0" reftest-async-scroll-y="300">
+  <div id="transform">
+    <div id="sticky"></div>
+  </div>
+  <div id="content" style="height: 2000px"></div>
+</div>
+</html>