Bug 1448841 - Part 1: Add crashtest for CompositorHitTestInfo changing z-index without an invalidation. r=mstange
authorMatt Woodrow <mwoodrow@mozilla.com>
Thu, 29 Mar 2018 23:00:49 +1300
changeset 775152 b895a035f5e355a3380d5fb147d091be1e4808a5
parent 775151 eed14f951a09e36cd238c03b24511c8a0712bee6
child 775153 f49364d5ebad1bdc8db3c3b7ef785335feefadc8
push id104638
push userbmo:jlorenzo@mozilla.com
push dateFri, 30 Mar 2018 13:27:33 +0000
reviewersmstange
bugs1448841
milestone61.0a1
Bug 1448841 - Part 1: Add crashtest for CompositorHitTestInfo changing z-index without an invalidation. r=mstange MozReview-Commit-ID: LkiWFPk6dzV
layout/base/crashtests/1448841-1.html
layout/base/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/layout/base/crashtests/1448841-1.html
@@ -0,0 +1,17 @@
+<html class="reftest-wait">
+<body>
+  <div style="width:500px; height:500px; overflow:scroll; border:1px black solid;">
+    <div id="change" style="width:100px; height:100px; background-color:green; position:relative; top:50px; left:50px"></div>
+    <div style="width:100px; height:100px; background-color:red; z-index:2; position:relative; left:200px"></div>
+    <div style="height:1000px"></div>
+  </div>
+  <div style="width:100px; height:100px; background-color:blue; z-index:1; position:relative; top:-400px"></div>
+</body>
+<script>
+  function doTest() {
+    document.getElementById("change").style.backgroundColor = "orange";
+    document.documentElement.removeAttribute("class");
+  }
+  document.addEventListener("MozReftestInvalidate", doTest);
+</script>
+</html>
--- a/layout/base/crashtests/crashtests.list
+++ b/layout/base/crashtests/crashtests.list
@@ -522,8 +522,9 @@ load 1425893.html
 load 1428353.html
 pref(dom.webcomponents.shadowdom.enabled,true) load 1429088.html
 load 1429961.html
 load 1435015.html
 load 1429962.html
 pref(dom.webcomponents.shadowdom.enabled,true) load 1439016.html
 load 1442506.html
 load 1437155.html
+load 1448841-1.html