New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] : The default preset breaks border related styles by cssDeclarationSorter
#1054
Comments
We can also see this issue in other cases |
Could be a bug in
Maybe we have to fix it in https://github.com/Siilwyn/css-declaration-sorter. The problem is that css-declaration-sorter has also dropped Node.js 10 compatibility. So it would be more difficult to update to a new release. |
@ludofischer maybe we should just change order of plugins |
Could not detect any size reduction with css-declaration-sorter on, it introduces bugs in certain conditions and it is hard to upgrade without breaking Node.js 10 compatibility. Fix #1054
Is there a reason besides improving gzip compression that cssnano uses |
hm, I think we need test it, it always seemed to me that sorting reduces the gzip size |
Could not detect any size reduction with css-declaration-sorter on, it introduces bugs in certain conditions and it is hard to upgrade without breaking Node.js 10 compatibility. Fix #1054
#1071 fixes this (the CSS in this issue has been added to the test cases) |
Describe the bug
The latest version of
cssnano
(5.0.1
) 's default preset breaks border related styles bycssDeclarationSorter
.To Reproduce
Please take a look at the minimum reproducible example.
Expected behavior
should not be broken by
cssnano
's default preset.Currently the output is
and the top border color is no longer
purple
.Additional info
5.0.1
cssnano-preset-default@5.0.0
The text was updated successfully, but these errors were encountered: