mdn / mdn/content

textPath attribute method doesn't seem to have an effect

Open
#24,079 5 comments 0 reactions 0 assignees View on GitHub
Content:SVG
Dominant language
Markdown
Stars
11k
Forks
23.2k
Avg merge
2d 9h
Merged PRs (30d)
331

Description

### MDN URL

https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textPath

### What specific section or headline is this issue about?

attribute method

### What information was incorrect, unhelpful, or incomplete?

There is an inconsistency with the experimental status of the attribute "method" compared to the documentation at https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/method. This web page does not describe it as experimental while the latter one does. It is defined in both SVG 1.1 and SVG 2.0, so it would not seem to be experimental. However, when I tested it on a cursive font (Dancing Script) where the attribute should matter most, it did not look any different in Chrome or Firefox. So either my test was not appropriate or the attribute is not supported despite the documentation. A sample SVG snippet is below. It shows the two possible "method" values of "align" and "stretch" being used. The text of both is overlaid, and as can be seen, the glyphs match up perfectly. In the preview, it mostly is removed, but it was added again in a later section.

```svg

```

### What did you expect to see?

There should have been changes to the glyphs when the "stretch" option was used with larger differences where the path was more curved.

### Do you have any supporting links, references, or citations?

https://www.w3.org/TR/SVG11/text.html#TextPathElementMethodAttribute
https://www.w3.org/TR/SVG2/text.html#TextPathElementMethodAttribute
https://fonts.google.com/specimen/Dancing+Script

### Do you have anything more you want to share?

The SVG below is the same as given earlier

```svg

```

### MDN metadata

Page report details

* Folder: `en-us/web/svg/element/textpath`
* MDN URL: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textPath
* GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/svg/element/textpath/index.md
* Last commit: https://github.com/mdn/content/commit/c0eef9c5828e919c8128c99e0f95cc7a0bcdbc4e
* Document last modified: 2022-12-09T17:22:31.000Z

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.