Bug 1504233 - Part 2: Add a reftest r=mattwoodrow
authorMiko Mynttinen <mikokm@gmail.com>
Mon, 26 Nov 2018 20:14:21 +0000
changeset 504558 bb579a94d0f69b239d897307ac9c81eb7f7a72ef
parent 504557 089d689d8eb5ed58ab0014858cdb44b15b7ff34d
child 504559 95d8c0fa8d6496f12cbff5709f4e816a5475bfc3
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs1504233
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 1504233 - Part 2: Add a reftest r=mattwoodrow Differential Revision: https://phabricator.services.mozilla.com/D12613
layout/reftests/display-list/1504233-1-ref.html
layout/reftests/display-list/1504233-1.html
layout/reftests/display-list/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/display-list/1504233-1-ref.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8">
+  <title>Testcase for bug 1504233</title>
+  <style type="text/css">
+    body {
+      margin: 0 0;
+    }
+
+    #wrapper {
+      display: flex;
+      flex-direction: column;
+      position: absolute;
+      width: 100%;
+      height: 100%;
+    }
+
+    #header {
+      background: green;
+      flex: 0 0 200px;
+    }
+
+    #container {
+      overflow: scroll;
+      will-change: transform;
+      flex: 0 1 auto;
+      scrollbar-width: none;
+    }
+
+    #bg {
+      background: green;
+      height: 1700px;
+    }
+  </style>
+</head>
+<body>
+<div id="wrapper">
+  <div id="header"></div>
+  <div id="container">
+    <div id="bg"></div>
+  </div>
+</div>
+<script type="text/javascript">
+document.getElementById("container").scrollTop = 200;
+</script>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/display-list/1504233-1.html
@@ -0,0 +1,62 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<head>
+  <meta charset="utf-8">
+  <title>Testcase for bug 1504233</title>
+  <style type="text/css">
+    body {
+      margin: 0 0;
+    }
+
+    #wrapper {
+      display: flex;
+      flex-direction: column;
+      position: absolute;
+      width: 100%;
+      height: 100%;
+    }
+
+    #header {
+      background: blue;
+      flex: 0 0 200px;
+    }
+
+    #container {
+      overflow: scroll;
+      will-change: transform;
+      flex: 0 1 auto;
+      scrollbar-width: none;
+    }
+
+    #red {
+      background: red;
+      height: 200px;
+    }
+
+    #bg {
+      background: green;
+      height: 1500px;
+    }
+  </style>
+</head>
+<body>
+<div id="wrapper">
+  <div id="header"></div>
+  <div id="container">
+    <div id="red"></div>
+    <div id="bg"></div>
+  </div>
+</div>
+<script type="text/javascript">
+document.getElementById("container").scrollTop = 200;
+
+function doTest() {
+  var e = document.getElementById("header");
+  e.style.background = "green";
+  document.documentElement.removeAttribute("class");
+}
+
+window.addEventListener("MozReftestInvalidate", doTest);
+</script>
+</body>
+</html>
--- a/layout/reftests/display-list/reftest.list
+++ b/layout/reftests/display-list/reftest.list
@@ -31,8 +31,9 @@ skip-if(!asyncPan) == 1437374-1.html 143
 == 1443027-3.html 1443027-3-ref.html
 == 1451971-1.html 1451971-ref.html
 == 1453541-1.html 1453541-ref.html
 == 1453541-2.html 1453541-ref.html
 == 1452805-1.html 1452805-ref.html
 == 1461231-1.html about:blank
 fuzzy(0-2,0-40000) skip-if(!asyncPan) == 1464288-1.html 1464288-ref.html
 == 1482403-1.html 1482403-1-ref.html
+== 1504233-1.html 1504233-1-ref.html