Fix links to W3C’s font-variant-alternates specification

This commit is contained in:
Guillaume Ayoub
2025-01-12 15:23:53 +01:00
parent 8ef8d1a331
commit 60b2f42bfd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -888,7 +888,7 @@ def font_feature_settings(tokens):
@single_keyword
def font_variant_alternates(keyword):
# TODO: support other values
# See https://www.w3.org/TR/css-fonts-3/#font-variant-caps-prop
# See https://drafts.csswg.org/css-fonts/#font-variant-alternates-prop
return keyword in ('normal', 'historical-forms')
+1 -1
View File
@@ -287,7 +287,7 @@ def font_features(font_kerning='normal', font_variant_ligatures='normal',
if font_variant_alternates != 'normal':
# TODO: support other values
# See https://www.w3.org/TR/css-fonts-3/#font-variant-caps-prop
# See https://drafts.csswg.org/css-fonts/#font-variant-alternates-prop
if font_variant_alternates == 'historical-forms':
features['hist'] = 1