/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] SVG textPath startOffset… IE bug

Everything works fine in FF and Chrome, but IE isn’t rending the text for 2 elements right.
IE is ignoring the startOffset and text-anchor attributes it seems.
I am wonder if anyone has a workaround for this issue.

Here is the SVG, CSS segments:

[code]text {
font-size: 11px;
text-anchor: middle;
fill: #000;
}
#preview > g[id] rect:first-child,
#preview > g[id] circle:first-child {
stroke: none;
fill: #000;
fill-opacity: .4;
}
#shoe > text:nth-of-type(2) {
font-size: 6px;
}[/code]

[code=html] <defs fill=”none”>
<path id=”r1″ d=”M42.556,42.556 m-39.06,0 a39.06,39.06 90 1,1 78.12,0 a39.06,39.06 90 1,1 -78.12,0″ />
<path id=”r2″ d=”M42.556,42.556 m-39.06,0 a39.06,39.06 90 0,0 78.12,0 a39.06,39.06 90 0,0 -78.12,0″ />
</defs>
<g id=”preview” transform=”scale(2)”>
<g id=”shoe” style=”display:none” transform=”translate(66.944,10.194)”>
<circle cx=”46.556″ cy=”46.556″ r=”42.556″ />
<circle cx=”42.556″ cy=”42.556″ r=”42.556″ stroke=”#000″ stroke-width=”.5″ />
<image x=”23.556″ y=”20″ width=”38″ height=”38″ />
<text x=”0″ y=”0″ dy=”0″><textPath startOffset=”25%” xlink:href=”#r2″> </textPath></text>
<text x=”42.556″ y=”61.107″ dy=”3″> </text>
<text x=”0″ y=”0″ dy=”8″><textPath startOffset=”25%” xlink:href=”#r1″>This Shoe Belongs To:</textPath></text>
</g>
[/code]

[ATTACH]15161[/ATTACH]
Cheers

[canned-message]attachments-removed-during-migration[/canned-message]

to post a comment
Full-stack Developer

1 Comments(s)

Copy linkTweet thisAlerts:
@ShrineDesignsauthorOct 30.2012 — I fixed this by removing the values for x and y in the outer text elements
[code=html] <text x="" y="" dy="0"><textPath startOffset="25%" xlink:href="#r2"> </textPath></text>
<text x="42.556" y="61.107" dy="3"> </text>
<text x="" y="" dy="8"><textPath startOffset="25%" xlink:href="#r1">This Shoe Belongs To:</textPath></text>
[/code]
×

Success!

Help @ShrineDesigns spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...