Last active
August 23, 2017 06:25
-
-
Save astrotim/7a6e91aa86d48fc2f0438a052459aaf1 to your computer and use it in GitHub Desktop.
CSS Grid feature detection
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
@mixin grid-not-supported { | |
// fallback with native feature detection | |
@supports not (display: grid) { | |
@content; | |
} | |
// fallback with Modernizr feature detection (IE) | |
.no-supports & { | |
@content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment