Because of a typo, rebasing of nested relative imports were not processed correctly,
leading to relative paths to last @import not the original one.
Thanks to @alexeyraspopov for spotting it!
* Fixed issue [#226](https://github.com/GoalSmashers/clean-css/issues/226) - don't minify border:none to border:0.
* Fixed issue [#229](https://github.com/GoalSmashers/clean-css/issues/229) - improved processing of fraction numbers.
* Fixed issue [#230](https://github.com/GoalSmashers/clean-css/issues/230) - better handling of zero values.
+* Fixed issue [#236](https://github.com/GoalSmashers/clean-css/issues/236) - incorrect rebasing with nested `import`s.
[2.0.8 / 2014-02-07](https://github.com/GoalSmashers/clean-css/compare/v2.0.7...v2.0.8)
==================
return process(importedData, {
root: options.root,
relativeTo: importRelativeTo,
- _baseRelativeTo: options.baseRelativeTo,
+ _baseRelativeTo: options._baseRelativeTo,
_shared: options._shared,
visited: options.visited,
whenDone: options.whenDone,
--- /dev/null
+@import '../base.css';
'@import url(test/data/partials-relative/base.css);',
'a{background:url(test/data/partials/extra/down.gif) 0 0 no-repeat}'
],
+ 'relative @import twice': [
+ '@import url(test/data/partials-relative/extra/included.css);',
+ 'a{background:url(test/data/partials/extra/down.gif) 0 0 no-repeat}'
+ ],
'absolute @import': [
'@import url(/test/data/partials-relative/base.css);',
'a{background:url(test/data/partials/extra/down.gif) 0 0 no-repeat}'