Conversation
|
@herrstrietzel does it address the issue you filed? Thanks. |
|
Preview URLs (4 pages)
Flaws (10) Note! 3 documents with no flaws that don't need to be listed. 🎉 Found an unexpected or unresolvable flaw? Please report it here. URL:
|
| The **`font-width`** attribute selects a normal, condensed, or expanded face from a font family for the glyphs used to render the text. | ||
|
|
||
| > [!NOTE] | ||
| > The `font-width` attribute is the modern replacement for the deprecated {{SVGAttr("font-stretch")}} attribute. While `font-width` is the specification's preferred name, `font-stretch` currently has broader browser support. |
There was a problem hiding this comment.
Except it wont be deprecated if mdn/browser-compat-data#29330 goes in.
Maybe
| > The `font-width` attribute is the modern replacement for the deprecated {{SVGAttr("font-stretch")}} attribute. While `font-width` is the specification's preferred name, `font-stretch` currently has broader browser support. | |
| > The `font-width` attribute is replacing the {{SVGAttr("font-stretch")}} attribute. While `font-width` is the specification's preferred name, `font-stretch` currently has broader browser support. |
|
|
||
| > [!NOTE] | ||
| > As a presentation attribute, `font-stretch` also has a CSS property counterpart: {{cssxref("font-stretch")}}. When both are specified, the CSS property takes priority. | ||
| > The `font-stretch` attribute was renamed to {{SVGAttr("font-width")}} following the renaming of the corresponding CSS property. The {{cssxref("font-stretch")}} CSS property is now a legacy alias for the {{cssxref("font-width")}} property. While `font-width` is the specification's preferred name, `font-stretch` currently has broader browser support. |
There was a problem hiding this comment.
Renaming kind of implies that the old version doesn't exist which is not the case. This might be a cleaner approach.
| > The `font-stretch` attribute was renamed to {{SVGAttr("font-width")}} following the renaming of the corresponding CSS property. The {{cssxref("font-stretch")}} CSS property is now a legacy alias for the {{cssxref("font-width")}} property. While `font-width` is the specification's preferred name, `font-stretch` currently has broader browser support. | |
| > The `font-stretch` attribute was updated to {{SVGAttr("font-width")}}, and is now a legacy alias of that attribute. This follows an update of the corresponding CSS property {{cssxref("font-stretch")}} to {{cssxref("font-width")}}. Note that while `font-width` is the specification's preferred name, `font-stretch` currently has broader browser support. |
hamishwillee
left a comment
There was a problem hiding this comment.
Thanks @pepelsbey - two suggestions - https://github.com/mdn/content/pull/43567/changes#r2997989422 should be fixed because the statement won't be true. Obviously I like the other too, but that's at your discretion.
Set as approved so you aren't blocked by me.
Description
font-widthSVG attribute (only supported in Safari 18.4 for now)font-widthas a modern alias atfont-stretchSVG attribute pageMotivation
Related issues and pull requests