summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/grid-model/grid-item-hit-test.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-grid/grid-model/grid-item-hit-test.html')
-rw-r--r--testing/web-platform/tests/css/css-grid/grid-model/grid-item-hit-test.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-grid/grid-model/grid-item-hit-test.html b/testing/web-platform/tests/css/css-grid/grid-model/grid-item-hit-test.html
new file mode 100644
index 0000000000..6d1ae5bf0e
--- /dev/null
+++ b/testing/web-platform/tests/css/css-grid/grid-model/grid-item-hit-test.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1029371">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<div style="display: grid;">
+ <div style="height: 100px;">
+ <div style="float: left; width: 50%; height: 400px; background: hotpink;"></div>
+ </div>
+ <div id="target" style="height: 100px; background: cyan;"></div>
+</div>
+<script>
+test(() => {
+ assert_equals(document.elementFromPoint(150, 150), document.getElementById('target'));
+});
+</script>
+