summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1081072-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/bugs/1081072-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/bugs/1081072-1.html')
-rw-r--r--layout/reftests/bugs/1081072-1.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/layout/reftests/bugs/1081072-1.html b/layout/reftests/bugs/1081072-1.html
new file mode 100644
index 000000000..59b1a8354
--- /dev/null
+++ b/layout/reftests/bugs/1081072-1.html
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<head>
+ <!-- NOTE: This bug was triggered by scrollbar opacity-fading, so this
+ testcase needs to be loaded with this pref...
+ layout.testing.overlay-scrollbars.always-visible
+ ...set to *false* in order to have a chance to trigger the bug.
+
+ We don't have to worry about this producing any screenshots of
+ unpredictable partially-faded-scrollbars in our reftest snapshot,
+ because our scrollbars don't actually paint here, since the
+ scrollable element has "overflow:auto" and doesn't overflow
+ (because it's auto-sized to fit its content). -->
+ <style>
+ .container {
+ display: flex;
+ overflow-y: auto;
+ border: 1px solid black;
+ }
+ </style>
+ <script type='text/javascript'>
+ window.addEventListener("MozReftestInvalidate", startTest);
+
+ function startTest() {
+ // NOTE: setTimeout in tests is evil, but it's necessary here -- we need
+ // to wait until the scrollbars have finished fading, and there's no
+ // event we can listen for to signal that, AFAIK. Fortunately, there
+ // shouldn't be *visible* scrollbars in this testcase, so even if our
+ // setTimeout fires too early/late, the test will still pass. (So, there
+ // shouldn't be spurious failures; any failures that happen will be real.)
+ setTimeout(endTest, 800);
+ }
+
+ function endTest() {
+ document.documentElement.removeAttribute("class");
+ }
+ </script>
+</head>
+<body>
+ <div class="container">
+ <div>T</div>
+ </div>
+</body>
+</html>