mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
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:
parent
43258e8acc
commit
2f9e7b5e32
@ -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>
|
Loading…
Reference in New Issue
Block a user