[Webkit-unassigned] [Bug 159421] New: Method getCharNumAtPosition doesn't work with textPath
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jul 5 08:11:08 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=159421
Bug ID: 159421
Summary: Method getCharNumAtPosition doesn't work with textPath
Classification: Unclassified
Product: WebKit
Version: Safari 9
Hardware: Macintosh
OS: OS X 10.11
Status: NEW
Severity: Normal
Priority: P2
Component: SVG
Assignee: webkit-unassigned at lists.webkit.org
Reporter: andrii at mamchur.net
CC: zimmermann at kde.org
Created attachment 282791
--> https://bugs.webkit.org/attachment.cgi?id=282791&action=review
getCharNumAtPosition work for first glyph only
Method SVGTextElement.getCharNumAtPosition doesn't work correctly when SVGTextElement contains SVGTextPathElement.
Steps to reproduce:
1. Create SVG with textPath element (see tutorial http://tutorials.jenkov.com/svg/textpath-element.html)
2. Call SVGTextElement.getCharNumAtPosition method to get char index by specified x, y position
See online example http://mamchur.net/issues/getCharNumAtPositionIssue/index.html
Just press "Monte Carlo Hit Test" several times & observe issue
Actual Results:
SVGTextElement.getCharNumAtPosition returns -1 and 0 values only
Expected Results:
See https://www.w3.org/TR/SVG/text.html#__svg__SVGTextContentElement__getCharNumAtPosition
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160705/d0b55165/attachment.html>
More information about the webkit-unassigned
mailing list