Skip to content

font-stretch vs font-width SVG attribute: clarify the renaming #43229

@herrstrietzel

Description

@herrstrietzel

MDN URL

https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/font-stretch

What specific section or headline is this issue about?

Deprecation notice

What information was incorrect, unhelpful, or incomplete?

The deprecation notice should include a hint that the preferred CSS 4 property name would be font-width.

In fact this is simply a new (re)naming convention.
It doesn't really change anything how browsers map available width variants.

The font-stretch property name was indeed quite misleading as it implied some sort of glyph scaling (analogous to SVG lengthAdjust) which it never did.

However, it is very unlikely Browsers will remove font-stretch in the next 10 years. Especially with regards to slower adoptions by non-browser applications (similar to xlink:href)

What did you expect to see?

Please consider to add:

or copy the notice from the aforementioned CSS article for the SVG

Note: The font-stretch property was renamed to font-width in the CSS Fonts specification. To preserve compatibility, the specification retains font-stretch as an alias for the font-width property.

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

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details

Metadata

Metadata

Assignees

Labels

Content:SVGSVG docsaccepting PRFeel free to open a PR to resolve this issue

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions