cssantique
v0.2.4
Published
Emulate old browsers CSS support
Downloads
2
Readme
CSSAntique
A javascript library to emulate old browsers CSS support
Work in progress
Installation
npm install cssantique
In browser usage
<script src="cssantique-browser.js"></script>
<script>
var params = {
browser: {name: 'Firefox', version: '3'}
}
CSSAntique.filterStyles(params, function(res){
console.log(res.discarded)
})
</script>
Developping in node.js with Webpack
import { filterStyles } from 'cssantique'
filterStyles({ browser: {name: 'Firefox', version: '3'} }, function(res){
...
})
You need to configure json loader in webpack to load the database
module: {
loaders: [
{ test: /\.json/, loader: 'json-loader' },
]
}