RESOLVED FIXED15131
hit-testing fails for inline SVGs in certain xhtml documents
https://bugs.webkit.org/show_bug.cgi?id=15131
Summary hit-testing fails for inline SVGs in certain xhtml documents
elliottcable
Reported 2007-09-01 20:51:06 PDT
While xlink-namespace hrefs work in svg documents, they don't work in svg-embedded-in-xhtml documents. Example: <svg width="300" height="200" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <a xlink:href="http://www.w3.org"> <ellipse cx="150" cy="100" rx="70" ry="50" fill="red"/> </a> </svg> This will work when saved in an SVG file alone, and rendered in WebKit; but it will not work when embedded in an XHTML document and rendered in WebKit. Expierenced in Safari 3 Beta, as well as nightly version 522.12.1, SVN revision 25328.
Attachments
Alexey Proskuryakov
Comment 1 2007-09-02 00:22:40 PDT
See also: bug 10556 (duplicate?)
elliottcable
Comment 2 2007-09-02 01:32:55 PDT
Saw that one on my search before posting this d-: Not duplicate, seeing as that's talking about xlink in other namespaces - this is in a namespace it's already supposed to work in, but it doesn't. So bug, not suggested feature.
Eric Seidel (no email)
Comment 3 2007-09-24 16:36:56 PDT
This is a hit-testing bug. Somehow we're probably not respecting tx/ty in RenderSVGRoot correctly (or somehow the inline SVG is being centered w/o us respecting the transform.
Eric Seidel (no email)
Comment 4 2007-09-24 16:39:56 PDT
Actually, this works fine on feature-branch. Marking fixed. feature-branch will hopefully be rolled into trunk by mid november (but I don't work for Apple or have any power to set timelines, so don't quote me on that!)
elliottcable
Comment 5 2007-09-25 12:17:20 PDT
This still won't work for me in a nightly build as of today: http://elliottcable.name/test/svg_test.old.xhtml Am I missing something? 'feature branch'?
Matt Lilek
Comment 6 2007-09-25 12:28:11 PDT
(In reply to comment #5) > This still won't work for me in a nightly build as of today: > http://elliottcable.name/test/svg_test.old.xhtml > > Am I missing something? 'feature branch'? > "feature-branch" is a branch of the repository where a lot of SVG work has been done. The standard nightly builds (and Safari 3 Beta releases) are from the "trunk" and do not contain this work. You can download a nightly of the feature-branch at <http://nightly.webkit.org/builds/mac-feature-branch/1>. Re-closing since it is fixed on feature-branch.
elliottcable
Comment 7 2007-09-25 13:03:13 PDT
Thanks! Can't wait for it to show up in Safari itself.
Note You need to log in before you can comment on or make changes to this bug.