Support path attribute on <textPath> element#1020
Open
yisibl wants to merge 4 commits intolinebender:mainfrom
Open
Support path attribute on <textPath> element#1020yisibl wants to merge 4 commits intolinebender:mainfrom
path attribute on <textPath> element#1020yisibl wants to merge 4 commits intolinebender:mainfrom
Conversation
path attribute on <textPath> elementpath attribute on <textPath> element
Collaborator
LaurenzV
reviewed
Mar 1, 2026
Collaborator
LaurenzV
left a comment
There was a problem hiding this comment.
LGTM, just two comments.
| xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
| <title>With partially invalid `path` and `xlink:href` fallback (SVG 2)</title> | ||
| <desc> | ||
| If the `path` attribute contains any parse error, the `xlink:href` path must be used. |
Collaborator
There was a problem hiding this comment.
But right now, the text is not using the xlink:href one, right?
Collaborator
There was a problem hiding this comment.
(Seems to be what Firefox and CHrome do, but then the comment itself confuses me.
Contributor
Author
|
Thank you for your review. I'm awaiting updates from SVGWG regarding their findings and tests. I'll be back later. |
Contributor
Author
|
Thank you for your review. I'm awaiting updates from SVGWG regarding their findings and tests.
I'll be back later. |
Contributor
Author
|
Chrome currently does not support using Basic shapes within
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Currently, there is a conflict within the SVG2 specification regarding:
Both @AmeliaBR and @karlcow believe this should be removed from the specification w3c/svgwg#393 (comment), which is what the current PR does. This also maintains interoperability with browser implementations.
I added a test case for this purpose: textPath/with-error-path.svg
See also:
Fixes: #417