flexbox.js 654 B

123456789101112131415161718192021
  1. /*!
  2. {
  3. "name": "Flexbox",
  4. "property": "flexbox",
  5. "caniuse": "flexbox",
  6. "tags": ["css"],
  7. "notes": [{
  8. "name": "The _new_ flexbox",
  9. "href": "https://www.w3.org/TR/css-flexbox-1/"
  10. }],
  11. "warnings": [
  12. "A `true` result for this detect does not imply that the `flex-wrap` property is supported; see the `flexwrap` detect."
  13. ]
  14. }
  15. !*/
  16. /* DOC
  17. Detects support for the Flexible Box Layout model, a.k.a. Flexbox, which allows easy manipulation of layout order and sizing within a container.
  18. */
  19. define(['Modernizr', 'testAllProps'], function(Modernizr, testAllProps) {
  20. Modernizr.addTest('flexbox', testAllProps('flexBasis', '1px', true));
  21. });