https://github.com/truemedia/postcss-polyfills
A PostCSS plugin which implement polyfills recommended on caniuse.com into your CSS where applicable
https://github.com/truemedia/postcss-polyfills
Last synced: 3 months ago
JSON representation
A PostCSS plugin which implement polyfills recommended on caniuse.com into your CSS where applicable
- Host: GitHub
- URL: https://github.com/truemedia/postcss-polyfills
- Owner: Truemedia
- License: mit
- Created: 2014-12-04T17:57:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-04T20:12:26.000Z (over 10 years ago)
- Last Synced: 2025-01-12T21:42:20.360Z (4 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
postcss-polyfills
=================A PostCSS plugin which implement polyfills recommended on caniuse.com into your CSS where applicable
This library aims to fill the void left by polyfills for several browsers that require javascript work-arounds which can be invoked using CSS classes and custom CSS properties.
Think of it as the next best thing to have alongside autoprefixer using polyfills your already familliar with, without having to type a single line of custom CSS.
This is a very early work in progress but the idea is to approach this using the same API as autoprefixer, with some modifications to allow certain polyfill javascript libraries to be injected into your project using a single script entry point.
== Few aims of the project ==
- Build an ie.htc (google .htc files and you'll understand why) incorporating as much functionality as possible from existing IE polyfill projects such as CSS3PIE and background-size-polyfill
- Wrap .htc property invokers inside classes that require a polyfill from the .htc file (the above 2 projects would be a good start for this)
- Ignore existing polyfills and maybe recommend removing them (if the API supports them)