WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
159421
Method getCharNumAtPosition doesn't work with textPath
https://bugs.webkit.org/show_bug.cgi?id=159421
Summary
Method getCharNumAtPosition doesn't work with textPath
Andrii Mamchur
Reported
2016-07-05 08:11:08 PDT
Created
attachment 282791
[details]
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
Attachments
getCharNumAtPosition work for first glyph only
(123.99 KB, image/png)
2016-07-05 08:11 PDT
,
Andrii Mamchur
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug