Bug 1698747 [wpt PR 28061] - Resizer in visibility:hidden element should not be hit, a=testonly

Automatic update from web-platform-tests
Resizer in visibility:hidden element should not be hit

Bug: 1185968
Change-Id: Ib030e107fc299db4c39bdf55ac4a246ef58d4759
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2757172
Reviewed-by: Philip Rogers <pdr@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#862566}

--

wpt-commits: 3615932a650e9ccf9274eebd52c26c62fbbe78b5
wpt-pr: 28061
This commit is contained in:
Xianzhu Wang 2021-03-17 13:30:27 +00:00 committed by moz-wptsync-bot
parent 43258e8acc
commit 2f9e7b5e32

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<title>elementFromPoint on resizer area of an element with visibility:hidden</title>
<link rel="help" href="http://www.w3.org/TR/cssom-view/#extensions-to-the-document-interface">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="expected" style="position: absolute; top: 0; left: 0; width: 100px; height: 100px; background: blue"></div>
<div id="hidden" style="position: absolute; top: 0; left: 0; width: 100px; height: 100px; visibility: hidden; overflow: scroll; resize: both"></div>
<script>
test(() => {
assert_equals(document.elementFromPoint(99, 99).id, "expected", "elementFromPoint should not return the hidden element");
});
</script>