Skip to content

Commit 0e4a403

Browse files
authored
Add font styles (#1635)
1 parent 6dd6f01 commit 0e4a403

20 files changed

+410
-0
lines changed

features/font-family-math.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: Math font family
2+
description: "The `font-family: math` CSS declaration uses the browser default font face for displaying mathematical expressions."
3+
spec: https://drafts.csswg.org/css-fonts-4/#math-def
4+
compat_features:
5+
- css.properties.font-family.math

features/font-family-math.yml.dist

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Generated from: font-family-math.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "109"
8+
chrome_android: "109"
9+
edge: "109"
10+
compat_features:
11+
- css.properties.font-family.math

features/font-family-system.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: System font
2+
description: "The `font-family: system-ui` CSS declaration uses the operating system default font for text."
3+
spec: https://drafts.csswg.org/css-fonts-4/#system-ui-def
4+
caniuse: font-family-system-ui
5+
compat_features:
6+
- css.properties.font-family.system-ui
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated from: font-family-system.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: high
6+
baseline_low_date: 2021-09-07
7+
baseline_high_date: 2024-03-07
8+
support:
9+
chrome: "56"
10+
chrome_android: "56"
11+
edge: "79"
12+
firefox: "92"
13+
firefox_android: "92"
14+
safari: "11"
15+
safari_ios: "11"
16+
compat_features:
17+
- css.properties.font-family.system-ui

features/font-family.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: font-family
2+
description: The `font-family` CSS property sets the desired font face for text, along with optional fallback font faces.
3+
spec: https://drafts.csswg.org/css-fonts-4/#font-family-prop
4+
group: fonts
5+
compat_features:
6+
- css.properties.font-family
7+
- svg.global_attributes.font-family

features/font-family.yml.dist

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated from: font-family.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: high
6+
baseline_low_date: 2015-07-29
7+
baseline_high_date: 2018-01-29
8+
support:
9+
chrome: "1"
10+
chrome_android: "18"
11+
edge: "12"
12+
firefox: "1"
13+
firefox_android: "4"
14+
safari: "1"
15+
safari_ios: "1"
16+
compat_features:
17+
- css.properties.font-family
18+
- svg.global_attributes.font-family

features/font-metric-overrides.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Font metric overrides
2+
description: The `ascent-override`, `descent-override`, and `line-gap-override` descriptors adjust the display of a font declared in an `@font-face` statement. This can help make fallback fonts look the same size.
3+
spec: https://drafts.csswg.org/css-fonts-4/#font-metrics-override-desc
4+
group: fonts
5+
compat_features:
6+
- css.at-rules.font-face.ascent-override
7+
- css.at-rules.font-face.descent-override
8+
- css.at-rules.font-face.line-gap-override
9+
- api.FontFace.ascentOverride
10+
- api.FontFace.descentOverride
11+
- api.FontFace.lineGapOverride
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated from: font-metric-overrides.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "87"
8+
chrome_android: "87"
9+
edge: "87"
10+
firefox: "89"
11+
firefox_android: "89"
12+
compat_features:
13+
- api.FontFace.ascentOverride
14+
- api.FontFace.descentOverride
15+
- api.FontFace.lineGapOverride
16+
- css.at-rules.font-face.ascent-override
17+
- css.at-rules.font-face.descent-override
18+
- css.at-rules.font-face.line-gap-override

features/font-shorthand.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: Font shorthand
2+
description: The `font` CSS property shorthand sets multiple font properties, including style, weight, size, and font family.
3+
spec: https://drafts.csswg.org/css-fonts-4/#font-prop
4+
group: fonts
5+
compat_features:
6+
- css.properties.font

features/font-shorthand.yml.dist

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated from: font-shorthand.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: high
6+
baseline_low_date: 2015-07-29
7+
baseline_high_date: 2018-01-29
8+
support:
9+
chrome: "1"
10+
chrome_android: "18"
11+
edge: "12"
12+
firefox: "1"
13+
firefox_android: "4"
14+
safari: "1"
15+
safari_ios: "1"
16+
compat_features:
17+
- css.properties.font

0 commit comments

Comments
 (0)