In this example I don't get alerts when clicking on the red line or the black stroke of the rectangle. On rare occasions I get alerts on the black stroke of the rectangle, but not reliable/reproducable. This might be related to bug http://bugs.webkit.org/show_bug.cgi?id=11096
Hi Andreas, So nice to see you entering svg bugs! (In reply to comment #0) > In this example I don't get alerts when clicking on the red line or the black > stroke of the rectangle. On rare occasions I get alerts on the black stroke of > the rectangle, but not reliable/reproducable. > > This might be related to bug http://bugs.webkit.org/show_bug.cgi?id=11096 That one really seems different, its about unclosed polylines IIRC. I investigated this one, the transforms/translations seem to mess it up. My bet is that it is due to the viewBox calculations. I'll work on it! Cheers, Rob.
Created attachment 11614 [details] First attempt This makes the testcase work and also works with the existing tests. Cheers, Rob.
Comment on attachment 11614 [details] First attempt This needs a test case. (or needs to have fixed an existing one). Otherwise it looks fine.
Created attachment 11615 [details] Now with testcase MacDome correctly pointed out the patch lacked a testcase, so there :) Cheers, Rob.
Comment on attachment 11615 [details] Now with testcase Well, it's not the worlds simplest test case. But assuming it failed before and now succeeds, your patch looks good!
rwlbuis committed r17876.