Fix links to W3C’s font-variant-alternates specification
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user