diff --git a/plugins/inlineStyles.js b/plugins/inlineStyles.js index e931b5f68..6b5174d1c 100644 --- a/plugins/inlineStyles.js +++ b/plugins/inlineStyles.js @@ -252,7 +252,7 @@ exports.fn = (root, params) => { csstree.walk(styleDeclarationList, { visit: 'Declaration', enter(node, item) { - styleDeclarationItems.set(node.property, item); + styleDeclarationItems.set(node.property.toLowerCase(), item); }, }); // merge declarations diff --git a/test/regression.js b/test/regression.js index 65fc3ba4e..9a8f445c8 100644 --- a/test/regression.js +++ b/test/regression.js @@ -38,8 +38,6 @@ const runTests = async ({ list }) => { name === 'w3c-svg-11-test-suite/svg/filters-composite-05-f.svg' || // removing wrapping breaks :first-child pseudo-class name === 'w3c-svg-11-test-suite/svg/styling-pres-04-f.svg' || - // messed case insensitivity while inlining styles - name === 'w3c-svg-11-test-suite/svg/styling-css-10-f.svg' || // rect is converted to path which matches wrong styles name === 'w3c-svg-11-test-suite/svg/styling-css-08-f.svg' || // external image