Skip to content

mfranzke/css-if-polyfill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSS if() Function Polyfill, PostCSS plugin and Stylelint plugin

MIT license Default CI/CD Pipeline code style: prettier XO code style Conventional Commits PRs Welcome Open Source Love Contributor Covenant

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.

Contributing

Please have a look at our CONTRIBUTION guidelines.

License

MIT License - see LICENSE file for details.

About

Fast and lightweight dependency-free vanilla JavaScript polyfill, PostCSS plugin and Stylelint plugin for native CSS if() function.

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 5