Bug 15131
| Summary: | hit-testing fails for inline SVGs in certain xhtml documents | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | elliottcable <bugs.webkit.org> |
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | Keywords: | NeedsReduction |
| Priority: | P3 | ||
| Version: | 523.x (Safari 3) | ||
| Hardware: | Mac (Intel) | ||
| OS: | OS X 10.4 | ||
| URL: | http://elliottcable.com/test/svg_test.old.xhtml | ||
elliottcable
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
See also: bug 10556 (duplicate?)
elliottcable
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)
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)
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
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
(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
Thanks! Can't wait for it to show up in Safari itself.