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)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bruce.rindahl, Unassigned)

References

Details

Attachments

(1 file)

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
->Core:SVG
Assignee: nobody → general
Component: General → SVG
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
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.
Attachment #205162 - Attachment mime type: image/svg → image/svg+xml
Depends on: 406312
Confirming. Fixed by patch in bug 406312
Status: UNCONFIRMED → NEW
Ever confirmed: true
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.

Attachment

General

Creator:
Created:
Updated:
Size: