-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2189 from Modernizr/feature/css-grid
Add CSS Grid test for old & new syntaxes
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/*! | ||
{ | ||
"name": "CSS Grid (old & new)", | ||
"property": ["cssgrid", "cssgridlegacy"], | ||
"authors": ["Faruk Ates"], | ||
"tags": ["css"], | ||
"notes": [{ | ||
"name": "The new, standardized CSS Grid", | ||
"href": "https://www.w3.org/TR/css3-grid-layout/" | ||
}, { | ||
"name": "The _old_ CSS Grid (legacy)", | ||
"href": "https://www.w3.org/TR/2011/WD-css3-grid-layout-20110407/" | ||
}] | ||
} | ||
!*/ | ||
define(['Modernizr', 'testAllProps'], function(Modernizr, testAllProps) { | ||
// `grid-columns` is only in the old syntax, `grid-column` exists in both and so `grid-template-rows` is used for the new syntax. | ||
Modernizr.addTest('cssgridlegacy', testAllProps('grid-columns', '10px', true)); | ||
Modernizr.addTest('cssgrid', testAllProps('grid-template-rows', 'none', true)); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters