should not remove spaces in calc() function
Closed this issue · 4 comments
adekbadek commented
Spaces are mandatory inside CSS calc()
function, and should not be removed in inlining.
To reproduce:
const inlineCss = require('inline-css');
const html = `
<style>
div{width: calc(100% - 20px);}
</style>
<div/>
`;
inlineCss(html, {url: '/'}).then(function(html) { console.log(html); });
// => <div style="width: calc(100%-20px);"></div>
jonkemp commented
Related: jonkemp/gulp-inline-css#37
jonkemp commented
The issue is in this module:
I've created an issue for this here.
jonkemp commented
The issue in CCSOM was fixed so it should be available in their next release.
jonkemp commented
I'm closing this as it's been resolved in the latest release of the cssom module. If you update your dependencies, it should work. If it's not working, make sure you have cssom 0.3.2.