fontdisplay.js 618 B

123456789101112131415161718192021
  1. /*!
  2. {
  3. "name": "Font Display",
  4. "property": "fontdisplay",
  5. "authors": ["Patrick Kettner"],
  6. "caniuse": "css-font-rendering-controls",
  7. "notes": [{
  8. "name": "W3C Spec",
  9. "href": "https://drafts.csswg.org/css-fonts-4/#font-display-desc"
  10. },{
  11. "name": "`font-display` for the masses",
  12. "href": "https://css-tricks.com/font-display-masses/"
  13. }]
  14. }
  15. !*/
  16. /* DOC
  17. Detects support for the `font-display` descriptor, which defines how font files are loaded and displayed by the browser.
  18. */
  19. define(['Modernizr'], function(Modernizr, testProp) {
  20. Modernizr.addTest('fontDisplay', testProp('font-display'));
  21. });