diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-listbox-fallback-change-crash.tentative.html | |
parent | Initial commit. (diff) | |
download | firefox-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 'testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-listbox-fallback-change-crash.tentative.html')
-rw-r--r-- | testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-listbox-fallback-change-crash.tentative.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-listbox-fallback-change-crash.tentative.html b/testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-listbox-fallback-change-crash.tentative.html new file mode 100644 index 0000000000..1a9e81d817 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-listbox-fallback-change-crash.tentative.html @@ -0,0 +1,35 @@ +<!doctype html> +<html class="test-wait"> +<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1400522"> +<link rel="author" href="mailto:xiaochengh@chromium.org"> + +<selectlist id="selectList" style="position: absolute;"> + <div slot="button"> + <button id="b1" behavior="button"></button> + </div> + <selectlist> + <div slot="button"> + <button id="b2" behavior="button">x</button> + </div> + <div id="listbox" popover slot="listbox" behavior="listbox"> + <option>y</option> + </div> + </selectlist> +</selectlist> + +<script type="module"> + const raf = () => new Promise(resolve => requestAnimationFrame(resolve)); + + document.querySelector('#b1').click(); + document.querySelector('#b2').click(); + + document.querySelector('#selectList').style.top = '-25px'; + + await raf(); + await raf(); + + document.querySelector('#selectList').style.top = '0px'; + + document.documentElement.classList.remove('test-wait'); +</script> +</html> |