Skip to content

Canvas fontStretch should be renamed to fontWidth for CSS parity #11324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
KurtCattiSchmidt opened this issue May 20, 2025 · 1 comment
Open

Comments

@KurtCattiSchmidt
Copy link

What is the issue with the HTML Standard?

The CSSWG resolved to rename font-stretch to font-width last year: w3c/csswg-drafts#551 (comment)

Now that vendors are implementing this change, it was discovered that the corresponding Canvas API is now out-of-sync (see https://bugzilla.mozilla.org/show_bug.cgi?id=1911075).

For backwards compatibility, the CSSWG is keeping font-stretch as an alias for font-width, and it probably makes sense to do that here.

@annevk
Copy link
Member

annevk commented May 21, 2025

Not a big fan of adding aliases, but I guess it's okay.

cc @whatwg/canvas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy