Skip to content

Commit 627d404

Browse files
ddbeckjamesnwcaptainbrosset
authored
Add font-width feature (#2707)
* Add `font-width` feature * Fix spec URL Co-authored-by: James Stuckey Weber <[email protected]> --------- Co-authored-by: James Stuckey Weber <[email protected]> Co-authored-by: Patrick Brosset <[email protected]>
1 parent 9f7b81b commit 627d404

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

features/font-stretch.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
name: font-stretch
22
description: The `font-stretch` CSS property selects a font face from a font family based on width, either by a keyword such as `condensed` or a percentage.
3-
# Note: `font-stretch` will become an alias to `font-width`: https://drafts.csswg.org/css-fonts/#font-stretch-desc
43
spec: https://drafts.csswg.org/css-fonts-4/#font-stretch-prop
4+
discouraged:
5+
according_to:
6+
- https://drafts.csswg.org/css-fonts-4/#font-stretch-prop
7+
alternatives:
8+
- font-width
59
group: fonts
610
caniuse: css-font-stretch
711
status:

features/font-width.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: font-width
2+
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.
3+
spec: https://drafts.csswg.org/css-fonts-4/#font-width-prop
4+
group: fonts
5+
compat_features:
6+
- css.properties.font-width
7+
- css.properties.font-width.condensed
8+
- css.properties.font-width.expanded
9+
- css.properties.font-width.extra-condensed
10+
- css.properties.font-width.extra-expanded
11+
- css.properties.font-width.normal
12+
- css.properties.font-width.semi-condensed
13+
- css.properties.font-width.semi-expanded
14+
- css.properties.font-width.ultra-condensed
15+
- css.properties.font-width.ultra-expanded

features/font-width.yml.dist

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated from: font-width.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support: {}
7+
compat_features:
8+
- css.properties.font-width
9+
- css.properties.font-width.condensed
10+
- css.properties.font-width.expanded
11+
- css.properties.font-width.extra-condensed
12+
- css.properties.font-width.extra-expanded
13+
- css.properties.font-width.normal
14+
- css.properties.font-width.semi-condensed
15+
- css.properties.font-width.semi-expanded
16+
- css.properties.font-width.ultra-condensed
17+
- css.properties.font-width.ultra-expanded

0 commit comments

Comments
 (0)