summaryrefslogtreecommitdiffstats
path: root/gfx/layers/apz/test/mochitest/helper_hittest_float_bug1443518.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /gfx/layers/apz/test/mochitest/helper_hittest_float_bug1443518.html
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/layers/apz/test/mochitest/helper_hittest_float_bug1443518.html')
-rw-r--r--gfx/layers/apz/test/mochitest/helper_hittest_float_bug1443518.html56
1 files changed, 56 insertions, 0 deletions
diff --git a/gfx/layers/apz/test/mochitest/helper_hittest_float_bug1443518.html b/gfx/layers/apz/test/mochitest/helper_hittest_float_bug1443518.html
new file mode 100644
index 0000000000..0e2e754375
--- /dev/null
+++ b/gfx/layers/apz/test/mochitest/helper_hittest_float_bug1443518.html
@@ -0,0 +1,56 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <title>APZ hit-testing with floated subframe</title>
+ <script type="application/javascript" src="apz_test_utils.js"></script>
+ <script type="application/javascript" src="apz_test_native_event_utils.js"></script>
+ <script src="/tests/SimpleTest/paint_listener.js"></script>
+ <meta name="viewport" content="width=device-width"/>
+ <style>
+ #div1 {
+ position: relative;
+ }
+ #div2 {
+ width: 300px;
+ float: left;
+ }
+ #subframe {
+ overflow: auto;
+ }
+ #make-root-scrollable {
+ height: 5000px;
+ }
+ </style>
+</head>
+<body>
+ <div id="div1">
+ <div id="div2">
+ <div id="subframe">
+ <pre>A line of text that overflows because it's sufficiently long</pre>
+ </div>
+ </div>
+ </div>
+ <div id="make-root-scrollable"></div>
+</body>
+<script type="application/javascript">
+
+async function test() {
+ var utils = getHitTestConfig().utils;
+
+ hitTestScrollbar({
+ element: document.getElementById("subframe"),
+ directions: { horizontal: true },
+ expectedScrollId: utils.getViewId(document.scrollingElement),
+ expectedLayersId: utils.getLayersId(),
+ trackLocation: ScrollbarTrackLocation.START,
+ expectThumb: true,
+ layerState: LayerState.INACTIVE,
+ });
+}
+
+waitUntilApzStable()
+.then(test)
+.then(subtestDone, subtestFailed);
+
+</script>
+</html>