Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(708)

Side by Side Diff: third_party/WebKit/LayoutTests/svg/hittest/empty-container.html

Issue 2234173002: Skip hit testing containers with invalid bounding boxes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <style>
5 * {
6 margin: 0;
7 }
8 svg {
9 pointer-events: bounding-box;
10 }
11 </style>
12 <svg id="svg" width="200" height="200">
13 <g></g>
14 </svg>
15 Hit testing an empty container should not crash.
fs 2016/08/11 15:22:04 To mesh better with testharness, this should proba
pdr. 2016/08/11 22:51:24 Done and confirmed the failure text looks nicer no
16 <script>
17 test(function() {
18 var checkOrigin = document.elementFromPoint(0, 0);
19 assert_equals(checkOrigin, svg, "element @ 0, 0");
20
21 var checkPoint = document.elementFromPoint(50, 50);
22 assert_equals(checkPoint, svg, "element @ 50, 50");
23 });
24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698