-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Mark font-stretch
as deprecated
#26060
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the renaming throughout, I would expect the deprecation status for all of the relevant keys here:
- css.at-rules.font-face.font-stretch (done)
- css.properties.font-stretch (done)
- css.properties.font-stretch.percentage (done)
- css.properties.font.font_stretch_support (missing)
- svg.global_attributes.font-stretch (missing)
Ah I should have read your PR description. For |
Instead of marking this as deprecated, shouldn't we merge this as an |
I started down this path, but found that the SVG spec doesn't really define these either—it just links out to other specs. It also says that, "In the future, any new properties that apply to SVG content will not gain presentation attributes." This suggests to me that we can just go ahead and apply to deprecation to For
There are no guidelines for when to use a separate key versus an This makes it much easier for web-features to consume the data, where we have to represent the relationship between the two features. If it were an alternative name, I'd have to manually set support data for the |
I checked in Safari 18.4 (https://jsfiddle.net/wjv73nb2/) and So, I think I'm +1 on deprecating |
This works for me! 👍 |
Summary
The spec calls this a "legacy" alias, so I took this to mean it's now deprecated.
Test results and supporting details
https://drafts.csswg.org/css-fonts-4/#font-stretch-prop
It feels a little weird to mark this up, given the strong support for the old name. But given our guidelines, that's how this ought to be.
I didn't make the change for the SVG attribute or
css.properties.font.font_stretch_support
, since I was less clear on how to handle those based on the spec. Guidance or suggestions welcome.Related issues
See the corresponding change in web-features: web-platform-dx/web-features#2707.