mirror of
https://github.com/Modernizr/Modernizr.git
synced 2026-01-09 15:47:55 -05:00
add detect for variable fonts (#2202)
This commit is contained in:
18
feature-detects/css/variablefonts.js
Normal file
18
feature-detects/css/variablefonts.js
Normal 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'));
|
||||
});
|
||||
@@ -111,6 +111,7 @@
|
||||
"css/transitions",
|
||||
"css/userselect",
|
||||
"css/valid",
|
||||
"css/variablefonts",
|
||||
"css/vhunit",
|
||||
"css/vmaxunit",
|
||||
"css/vminunit",
|
||||
|
||||
Reference in New Issue
Block a user