summaryrefslogtreecommitdiffstats
path: root/layout/reftests/invalidation/layer-splitting-4.html
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /layout/reftests/invalidation/layer-splitting-4.html
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/reftests/invalidation/layer-splitting-4.html')
-rw-r--r--layout/reftests/invalidation/layer-splitting-4.html82
1 files changed, 82 insertions, 0 deletions
diff --git a/layout/reftests/invalidation/layer-splitting-4.html b/layout/reftests/invalidation/layer-splitting-4.html
new file mode 100644
index 000000000..53af2eb90
--- /dev/null
+++ b/layout/reftests/invalidation/layer-splitting-4.html
@@ -0,0 +1,82 @@
+<!DOCTYPE html>
+<html lang="en">
+<meta charset="utf-8">
+<title>The two items in the scroll box should share a layer, despite all the other stuff that's going on around them</title>
+
+<style>
+
+.content {
+ box-sizing: border-box;
+ width: 200px;
+ height: 200px;
+ border: 1px solid blue;
+ background: white;
+}
+
+body {
+ margin: 0;
+ padding: 20px;
+ height: 3000px;
+}
+
+.opacity {
+ opacity: 0.9;
+ width: 200px;
+ height: 200px;
+ background-color: yellow;
+ will-change: opacity;
+}
+
+.overlap {
+ margin-top: -100px;
+}
+
+.scrollable {
+ position: absolute;
+ top: 20px;
+ left: 240px;
+ width: 400px;
+ height: 400px;
+ border: 1px solid black;
+ overflow: auto;
+}
+
+.scrollarea {
+ height: 800px;
+ padding: 40px;
+}
+
+.low-z, .mid-z, .high-z {
+ position: relative;
+}
+
+.low-z { z-index: 1; }
+.mid-z { z-index: 2; }
+.high-z { z-index: 3; }
+
+</style>
+
+<div class="content" reftest-assigned-layer="page-background"></div>
+<div class="overlap opacity"></div>
+<div class="overlap mid-z content" reftest-assigned-layer="on-top-of-opacity">
+ <!--
+ This item cannot merge into the page background layer because there's an
+ active container layer for the opacity in between.
+ -->
+</div>
+
+<div class="scrollable">
+ <div class="scrollarea">
+ <div class="low-z content" reftest-assigned-layer="scrolled-content"></div>
+ <div class="high-z overlap content" reftest-assigned-layer="scrolled-content"></div>
+ </div>
+</div>
+<script>
+
+var scrollable = document.querySelector(".scrollable");
+
+// Make .scrollable start out with active scrolling.
+scrollable.scrollTop = 0;
+scrollable.scrollTop = 20;
+
+</script>