Modernizr/Modernizr — pull request #1132 by patrickkettner (2013-12-03 05:15:13+00:00)
Title: Create atRule API to check for atRules (@keyframes, @import, etc.)

fixes #814

creates a new API to test if any kind of `@-`rule is supported.

eg

1. `Modernizr.atRule('charset', '"UTF-8"')`
1. `Modernizr.atRule('filter', 'foo {}')`
1. `Modernizr.atRule('font-face')`
1. `Modernizr.atRule('import', 'url()')`
1. `Modernizr.atRule('keyframes')`
1. `Modernizr.atRule('media')`
1. `Modernizr.atRule('page')`
1. `Modernizr.atRule('supports', '(){}')`
1. `Modernizr.atRule('viewport')`

Assuming we want to add a new API (I know @paulirish has bemoaned its increase in size), we could clean up some existing tests, and easily add future ones. This also allows for an easy API for other scripts to hook into (the reason behind #814)