Bug 1501342 - Add a reftest. r=mstange
authorBotond Ballo <botond@mozilla.com>
Fri, 30 Nov 2018 02:03:03 +0000
changeset 508113 68db1bda769f81d14f2f8dbf3112dab8df9772a5
parent 508112 a96e2090fc20e98393d6b365b30f0283f8481849
child 508114 acd2bfce6779ada0430d1dadfc225b1f872b8db4
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1501342
milestone65.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 1501342 - Add a reftest. r=mstange Differential Revision: https://phabricator.services.mozilla.com/D13347
layout/reftests/async-scrolling/reftest.list
layout/reftests/async-scrolling/sticky-inside-fixed-1-ref.html
layout/reftests/async-scrolling/sticky-inside-fixed-1.html
--- a/layout/reftests/async-scrolling/reftest.list
+++ b/layout/reftests/async-scrolling/reftest.list
@@ -39,16 +39,17 @@ skip-if(!asyncPan) == fixed-pos-scrollab
 skip-if(!asyncPan) == culling-1.html culling-1-ref.html
 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
 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
new file mode 100644
--- /dev/null
+++ b/layout/reftests/async-scrolling/sticky-inside-fixed-1-ref.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <title>Testcase for Bug 1501342</title>
+  <style>
+    .panel {
+      height:100%;
+      overflow:hidden;
+      position:fixed;
+      right:0;
+    }
+    .scrollable {
+      height:100%;
+      overflow-y:hidden;
+    }
+    .sticky {
+      position:sticky;
+      top:0;
+      height: 50px;
+      width: 100px;
+      background: red;
+    }
+    .content {
+      margin-top: -50px;
+      height:2000px;
+      width:200px;
+      background:green;
+    }
+  </style>
+</head>
+<body>
+  <div class="panel">
+    <div class="scrollable">
+      <div class="sticky"></div>
+      <div class="content"></div>
+    </div>
+  </div>
+</body>
+</html>
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/layout/reftests/async-scrolling/sticky-inside-fixed-1.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html reftest-async-scroll>
+<html>
+<head>
+  <title>Testcase for Bug 1501342</title>
+  <style>
+    .panel {
+      height:100%;
+      overflow:hidden;
+      position:fixed;
+      right:0;
+    }
+    .scrollable {
+      height:100%;
+      overflow-y:hidden;
+    }
+    .sticky {
+      position:sticky;
+      top:0;
+      height: 50px;
+      width: 100px;
+      background: red;
+    }
+    .content {
+      height:2000px;
+      width:200px;
+      background:green;
+    }
+  </style>
+</head>
+<body>
+  <div class="panel">
+    <div class="scrollable"
+         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