Skip to content

font-width: Add @font-face descriptor to feature#3800

Merged
ddbeck merged 2 commits intoweb-platform-dx:mainfrom
ddbeck:3795-font-width
Mar 6, 2026
Merged

font-width: Add @font-face descriptor to feature#3800
ddbeck merged 2 commits intoweb-platform-dx:mainfrom
ddbeck:3795-font-width

Conversation

@ddbeck
Copy link
Copy Markdown
Collaborator

@ddbeck ddbeck commented Feb 23, 2026

Fixes #3795

@ddbeck ddbeck added the feature definition Creating or defining new features or groups of features. label Feb 23, 2026
Comment on lines +6 to +17
compute_from:
- css.properties.font-width
- css.properties.font-width.condensed
- css.properties.font-width.expanded
- css.properties.font-width.extra-condensed
- css.properties.font-width.extra-expanded
- css.properties.font-width.normal
- css.properties.font-width.semi-condensed
- css.properties.font-width.semi-expanded
- css.properties.font-width.ultra-condensed
- css.properties.font-width.ultra-expanded
- css.at-rules.font-face.font-width
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it make our life easier if we also had a ignore_keys field?

This feature basically uses a compute_from for all keys but one, and it would be great if instead we could ignore that one only, with a comment.

Maybe file an issue to think about this? If you think this would be useful.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'll need a more sophisticated answer for this to deal with feature merges, so the aspects "issue" is kinda representing this problem already (i.e., we'll name groups of keys to make the initial/later/related distinctions explicit and make it easier to move them around semi-automatically).

I can make a separate issue if you like, though.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ddbeck:3795-font-width

- css.properties.font-width.ultra-expanded
- css.at-rules.font-face.font-width
compat_features:
- api.CSSFontFaceDescriptors.fontWidth
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a comment for this key? Something like:

"This key is excluded from the Baseline calculation using compute_from, above, because it shipped a little later than the rest of the keys in Safari, and it isn't worth delaying the feature for, etc...."

Comment on lines +6 to +17
compute_from:
- css.properties.font-width
- css.properties.font-width.condensed
- css.properties.font-width.expanded
- css.properties.font-width.extra-condensed
- css.properties.font-width.extra-expanded
- css.properties.font-width.normal
- css.properties.font-width.semi-condensed
- css.properties.font-width.semi-expanded
- css.properties.font-width.ultra-condensed
- css.properties.font-width.ultra-expanded
- css.at-rules.font-face.font-width
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'll need a more sophisticated answer for this to deal with feature merges, so the aspects "issue" is kinda representing this problem already (i.e., we'll name groups of keys to make the initial/later/related distinctions explicit and make it easier to move them around semi-automatically).

I can make a separate issue if you like, though.

@ddbeck ddbeck enabled auto-merge (squash) March 6, 2026 16:20
@ddbeck ddbeck merged commit 4e38afb into web-platform-dx:main Mar 6, 2026
3 checks passed
@ddbeck ddbeck deleted the 3795-font-width branch March 6, 2026 16:22
description: The `font-width` CSS property selects a font face from a font family based on width, either by a keyword such as `condensed` or a percentage.
spec: https://drafts.csswg.org/css-fonts-4/#font-width-prop
group: fonts
status:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

features/font-width.yml

@Destop-Trang1801
Copy link
Copy Markdown

Destop-Trang1801 commented Mar 9, 2026 via email

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

Labels

feature definition Creating or defining new features or groups of features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing font-width @font-face descriptor feature

3 participants