mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 23:21:04 +00:00
22 lines
631 B
JavaScript
22 lines
631 B
JavaScript
/*!
|
|
{
|
|
"name": "Font Display",
|
|
"property": "fontdisplay",
|
|
"authors": ["Patrick Kettner"],
|
|
"caniuse": "css-font-rendering-controls",
|
|
"notes": [{
|
|
"name": "W3C Spec",
|
|
"href": "https://drafts.csswg.org/css-fonts-4/#font-display-desc"
|
|
}, {
|
|
"name": "`font-display` for the masses",
|
|
"href": "https://css-tricks.com/font-display-masses/"
|
|
}]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detects support for the `font-display` descriptor, which defines how font files are loaded and displayed by the browser.
|
|
*/
|
|
define(['Modernizr', 'testProp'], function(Modernizr, testProp) {
|
|
Modernizr.addTest('fontDisplay', testProp('font-display'));
|
|
});
|