Bug 84452 - [Chromium] Bad hit checking for small sizes with magnifying viewbox
Summary: [Chromium] Bad hit checking for small sizes with magnifying viewbox
Status: RESOLVED DUPLICATE of bug 84117
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-20 08:05 PDT by Eric Wieser
Modified: 2012-04-20 12:06 PDT (History)
3 users (show)

See Also:


Attachments
The SVG file to test (476 bytes, image/svg+xml)
2012-04-20 08:06 PDT, Eric Wieser
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Wieser 2012-04-20 08:05:20 PDT
The attached file is an svg document with a viewbox scaling one SVG unit to 50px. Within it are two black circles and a D shape, each of which with `style="cursor: move" onclick="alert('Circle')"`.

No two versions of webkit that were tested appear to behave in the same way, nor do any behave entirely correctly. Hitboxes are either absent or overly large.
Comment 1 Eric Wieser 2012-04-20 08:06:47 PDT
Created attachment 138095 [details]
The SVG file to test
Comment 2 Dirk Schulze 2012-04-20 10:20:12 PDT
This works in WebKit nightly. We saw some issues on Chromium in the past. Mainly because of an bug in Skia. Can you confirm that you use Chromium?

Changing the title to use the prefix chromium. Pdr, can you look at it please?
Comment 3 Eric Wieser 2012-04-20 11:36:33 PDT
(In reply to comment #2)
> This works in WebKit nightly. We saw some issues on Chromium in the past. Mainly because of an bug in Skia. Can you confirm that you use Chromium?
> 
> Changing the title to use the prefix chromium. Pdr, can you look at it please?

A friend and I did a real mixture of tests:

 * Google Chrome 18.0.1025.162m - Small circle and D are unclickable, large circle has a square hitbox extending 50px on the sides
 * Chrome Canary build - Circles fixed, D unclickable
 * Safari - Large circle has a square bounding box
 * (possible out of date) webkit nightly - D shape has square hit box
Comment 4 Dirk Schulze 2012-04-20 11:41:27 PDT
(In reply to comment #3)
> (In reply to comment #2)
> > This works in WebKit nightly. We saw some issues on Chromium in the past. Mainly because of an bug in Skia. Can you confirm that you use Chromium?
> > 
> > Changing the title to use the prefix chromium. Pdr, can you look at it please?
> 
> A friend and I did a real mixture of tests:
> 
>  * Google Chrome 18.0.1025.162m - Small circle and D are unclickable, large circle has a square hitbox extending 50px on the sides
>  * Chrome Canary build - Circles fixed, D unclickable
>  * Safari - Large circle has a square bounding box
>  * (possible out of date) webkit nightly - D shape has square hit box

Yes, looks like your nightly is outdated.
Comment 5 Philip Rogers 2012-04-20 12:06:29 PDT
This is still a bug on Skia-backed platforms for scaled paths. I recently fixed it for rects, circles, and ellipses but the problem remains for paths. Marking as a dupe of 84117.

*** This bug has been marked as a duplicate of bug 84117 ***