summaryrefslogtreecommitdiffstats
path: root/layout/reftests/async-scrolling/opaque-fractional-displayport-1.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/async-scrolling/opaque-fractional-displayport-1.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/async-scrolling/opaque-fractional-displayport-1.html')
-rw-r--r--layout/reftests/async-scrolling/opaque-fractional-displayport-1.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/layout/reftests/async-scrolling/opaque-fractional-displayport-1.html b/layout/reftests/async-scrolling/opaque-fractional-displayport-1.html
new file mode 100644
index 000000000..8a73a7f30
--- /dev/null
+++ b/layout/reftests/async-scrolling/opaque-fractional-displayport-1.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html lang="en" reftest-async-scroll>
+<meta charset="utf-8">
+<title>Make sure the scrolled layer is opaque even if the scrolled area is fractional</title>
+
+<style>
+
+body {
+ margin: 0;
+}
+
+.scrollbox {
+ margin: 50px;
+ width: 200px;
+ height: 200px;
+ overflow: auto;
+
+ /* Make the background "non-uniform" so that the scrolled layer does not
+ * pull up a background color. */
+ background: linear-gradient(to bottom, white, transparent);
+}
+
+.scrolled-contents {
+ height: 300.2px;
+ background-color: lime;
+ box-sizing: border-box;
+}
+
+.transparent-overlap-of-fractional-edge {
+ margin: 0 20px;
+ height: 40px;
+ /* This element has a box-shadow that overlaps the bottom of the scrolled
+ * area. Box shadows do not expand the scrollable area. */
+ box-shadow: 0 280px rgba(0, 0, 255, 0.5);
+}
+
+</style>
+
+<body>
+
+<div class="scrollbox"
+ reftest-displayport-x="0" reftest-displayport-y="0"
+ reftest-displayport-w="200" reftest-displayport-h="300.2"
+ reftest-async-scroll-x="0" reftest-async-scroll-y="0">
+ <div class="scrolled-contents">
+ <div class="transparent-overlap-of-fractional-edge reftest-opaque-layer">
+ <!-- This element has the magic "reftest-opaque-layer" class which
+ constitutes the actual test here. -->
+ </div>
+ </div>
+</div>