RESOLVED FIXED 19814
getComputedTextLength always returns 0 with tspan elements
https://bugs.webkit.org/show_bug.cgi?id=19814
Summary getComputedTextLength always returns 0 with tspan elements
John Moe
Reported 2008-06-29 11:16:47 PDT
getComputedTextLength always returns 0 with tspan elements. FF3 does not.
Attachments
Example (514 bytes, image/svg+xml)
2008-06-29 11:18 PDT, John Moe
no flags
Testcase (1.88 KB, patch)
2011-04-06 00:42 PDT, Nikolas Zimmermann
no flags
John Moe
Comment 1 2008-06-29 11:18:24 PDT
Created attachment 21997 [details] Example Should alert the same number twice. Instead will be 42 (or so) and then 0.
Eric Seidel (no email)
Comment 2 2008-07-03 21:50:13 PDT
Yup. Looks like a real bug. Thanks for the simple example.
Willi Tscheschner
Comment 3 2009-06-09 08:32:57 PDT
Can confirm this bug. We use the tspan.getComputedTextLength() function for a manual word wrap of a label. Due to the returned 0 our word wrap does not work at all in Webkit. This is a major issue for us and we'd appreciate it to be fixed somewhere in the near future...
Nikolas Zimmermann
Comment 4 2011-04-06 00:42:46 PDT
Created attachment 88380 [details] Testcase Bug is resolved in trunk since a while, we forgot to close this bug report. Nevertheless, I've modified the attached testcase to be a real layout test, and I'd like to land it. Dirk, can you check?
Dirk Schulze
Comment 5 2011-04-06 01:59:57 PDT
Comment on attachment 88380 [details] Testcase r=me
WebKit Commit Bot
Comment 6 2011-04-06 02:24:41 PDT
Comment on attachment 88380 [details] Testcase Clearing flags on attachment: 88380 Committed r83035: <http://trac.webkit.org/changeset/83035>
WebKit Commit Bot
Comment 7 2011-04-06 02:24:47 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.