css-calc-polyfill
CSS3 calc
polyfill.
This project is based on calc-polyfill
and viewport-units-buggyfill.
It aims to do calc
polyfill by the viewport-units-buggyfill
hack approach:
- use postcss-viewport-units to
automatically append unsupported
calc
declarations tocontent
declaration - init this polyfill so it could retrieve all preserved
calc
declarations - internally refresh so changed elements could get proper styles
Install
$ npm install -D css-calc-polyfill
Usage
; const refreshCalc = { ;}; document;
License
MIT