A modern JavaScript polyfill, PostCSS plugin and a Stylelint plugin (to extend to prevent lint false positives) for the CSS if()
function with hybrid build-time and runtime processing. Transforms CSS if()
functions to native @media
and @supports
rules where possible, with runtime fallback for dynamic conditions.
Please have a look at our CONTRIBUTION guidelines.
MIT License - see LICENSE file for details.