cssgrid.js 752 B

1234567891011121314151617181920
  1. /*!
  2. {
  3. "name": "CSS Grid (old & new)",
  4. "property": ["cssgrid", "cssgridlegacy"],
  5. "authors": ["Faruk Ates"],
  6. "tags": ["css"],
  7. "notes": [{
  8. "name": "The new, standardized CSS Grid",
  9. "href": "https://www.w3.org/TR/css3-grid-layout/"
  10. }, {
  11. "name": "The _old_ CSS Grid (legacy)",
  12. "href": "https://www.w3.org/TR/2011/WD-css3-grid-layout-20110407/"
  13. }]
  14. }
  15. !*/
  16. define(['Modernizr', 'testAllProps'], function(Modernizr, testAllProps) {
  17. // `grid-columns` is only in the old syntax, `grid-column` exists in both and so `grid-template-rows` is used for the new syntax.
  18. Modernizr.addTest('cssgridlegacy', testAllProps('grid-columns', '10px', true));
  19. Modernizr.addTest('cssgrid', testAllProps('grid-template-rows', 'none', true));
  20. });