We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
sortAttributesWithLists
<img sizes="(min-width: 300px) 200px, 100px">
const htmlnano = require("htmlnano"); htmlnano .process( ` <img sizes="(min-width: 300px) 200px, 100px">`, { minifyCss: false, sortAttributesWithLists: false, } ) .then(function (result) { console.log(result.html); }) .catch(function (err) { console.error(err); });
Wrong Output with sortAttributesWithLists enabled: <img sizes="(min-width: 100px 200px, 300px)"> Output with sortAttributesWithLists disabled: <img sizes="(min-width: 300px) 200px, 100px">
<img sizes="(min-width: 100px 200px, 300px)">
The text was updated successfully, but these errors were encountered:
sizes
Fix(posthtml#180): exclude "sizes" from attributesWithLists
137156c
Test: add a case for posthtml#180
00e7ac9
Merge pull request #181 from SukkaW/fix-180
e4eedd0
Fix(#180): exclude "sizes" from attributesWithLists
Successfully merging a pull request may close this issue.
Wrong Output with
sortAttributesWithLists
enabled:<img sizes="(min-width: 100px 200px, 300px)">
Output with
sortAttributesWithLists
disabled:<img sizes="(min-width: 300px) 200px, 100px">
The text was updated successfully, but these errors were encountered: