PostCSS plugin to shim the pseudo-selectors :required and :optional by using negation (:not) and therefore slightly increase their browser support.
/* input */ /* output */
/* input, option { method: 'shim-required' } *//* output, option { method: 'shim-required' } */
/* input, option { method: 'shim-optional' } *//* output, option { method: 'shim-optional' } */
Options
The only available option is method
, with the possible values shim-all
(default), shim-optional
and shim-required
:
Usage
method: 'shim-required' //shim only the :required selector
See PostCSS docs for examples for your environment.