Closed
Bug 319345
Opened 20 years ago
Closed 18 years ago
When using tspan element inside a textPath element, the startOffset parameter is ignored
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bruce.rindahl, Unassigned)
References
Details
Attachments
(1 file)
721 bytes,
image/svg+xml
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20051205 Firefox/1.6a1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20051205 Firefox/1.6a1
Using SVG to center text on a path. text-anchor attribute is set to "middle" and startOffset is set to "50%". Display is as expected. If you add a tspan element to place the text on the path, the startOffset attribute is ignored.
Reproducible: Always
Reporter | ||
Comment 1•20 years ago
|
||
->Core:SVG
Assignee: nobody → general
Component: General → SVG
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
Reporter | ||
Comment 3•20 years ago
|
||
After further investigation the behavior is affected by a carriage return between the <textPath> and the <tspan> tags. For example:
<textPath .....><tspan ...>Some Text</tspan></textPath>
will display incorrectly while:
<textPath .....>
<tspan ...>Some Text</tspan></textPath>
will display as expected. I am guessing this must have something to do with computing the length of the string.
Adding a carriage return between the </tspan> </textPath> has no effect.
Updated•20 years ago
|
Attachment #205162 -
Attachment mime type: image/svg → image/svg+xml
Comment 4•18 years ago
|
||
Confirming. Fixed by patch in bug 406312
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 5•18 years ago
|
||
Fixed by check-in for bug 406312
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•