add detect for variable fonts (#2202)

This commit is contained in:
patrick kettner
2017-07-28 21:08:22 -07:00
committed by GitHub
parent bfd4b3f1b9
commit 4b01e640d0
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/*!
{
"name": "Variable Open Type Fonts",
"property": ["variablefonts"],
"authors": ["Patrick Kettner"],
"tags": ["css"],
"notes": [{
"name": "Variable fonts on the web",
"href": "https://webkit.org/blog/7051/variable-fonts-on-the-web/"
}, {
"name": "Variable fonts for responsive design",
"href": "https://alistapart.com/blog/post/variable-fonts-for-responsive-design"
}]
}
!*/
define(['Modernizr', 'testAllProps'], function(Modernizr, testAllProps) {
Modernizr.addTest('variablefonts', testAllProps('fontVariationSettings'));
});

View File

@@ -111,6 +111,7 @@
"css/transitions",
"css/userselect",
"css/valid",
"css/variablefonts",
"css/vhunit",
"css/vmaxunit",
"css/vminunit",