diff --git a/docs/03-plugins/remove-attrs.mdx b/docs/03-plugins/remove-attrs.mdx index a93553a11..1705ac457 100644 --- a/docs/03-plugins/remove-attrs.mdx +++ b/docs/03-plugins/remove-attrs.mdx @@ -20,7 +20,7 @@ The format accepted is `[ element* : attribute* : value* ]`, where: - `element`: A regular expression matching element names. An asterisk or omission matches all elements. - `attribute`: A regular expression matching attribute names. -- `value`: A regular expresison matching attribute values. An asterisk or omission matches all values. +- `value`: A regular expression matching attribute values. An asterisk or omission matches all values. For example, `path:fill` matches all `fill` attributes in `` elements. diff --git a/lib/style.test.js b/lib/style.test.js index 2d3fc95d2..544926beb 100644 --- a/lib/style.test.js +++ b/lib/style.test.js @@ -191,7 +191,7 @@ it('treats at-rules and pseudo-classes as dynamic styles', () => { - + @@ -213,7 +213,7 @@ it('treats at-rules and pseudo-classes as dynamic styles', () => { fill: { type: 'dynamic', inherited: true }, }); expect( - computeStyle(stylesheet, getElementById(root, 'inherited-overriden')), + computeStyle(stylesheet, getElementById(root, 'inherited-overridden')), ).toStrictEqual({ fill: { type: 'static', inherited: false, value: 'blue' }, }); diff --git a/lib/svgo/coa.js b/lib/svgo/coa.js index 62abcfff6..33019a6eb 100644 --- a/lib/svgo/coa.js +++ b/lib/svgo/coa.js @@ -244,8 +244,8 @@ async function action(args, opts, command) { // --folder if (opts.folder) { - var ouputFolder = (output && output[0]) || opts.folder; - await optimizeFolder(config, opts.folder, ouputFolder); + var outputFolder = (output && output[0]) || opts.folder; + await optimizeFolder(config, opts.folder, outputFolder); } // --input diff --git a/plugins/_transforms.js b/plugins/_transforms.js index ed21c3ed6..46c97c8af 100644 --- a/plugins/_transforms.js +++ b/plugins/_transforms.js @@ -433,7 +433,7 @@ const optimize = (roundedTransforms, rawTransforms) => { } } - // If everything was optimized out, reture identity transform scale(1). + // If everything was optimized out, return identity transform scale(1). return optimizedTransforms.length ? optimizedTransforms : [{ name: 'scale', data: [1] }]; diff --git a/test/plugins/addAttributesToSVGElement.03.svg.txt b/test/plugins/addAttributesToSVGElement.03.svg.txt index 1558d5698..bbacfb64a 100644 --- a/test/plugins/addAttributesToSVGElement.03.svg.txt +++ b/test/plugins/addAttributesToSVGElement.03.svg.txt @@ -1,4 +1,4 @@ -Add multple attributes with values +Add multiple attributes with values === diff --git a/test/plugins/cleanupIds.23.svg.txt b/test/plugins/cleanupIds.23.svg.txt index a118b6a2c..b43210680 100644 --- a/test/plugins/cleanupIds.23.svg.txt +++ b/test/plugins/cleanupIds.23.svg.txt @@ -1,4 +1,4 @@ -When there is an malformed reference that points to a non-existant node, skip +When there is an malformed reference that points to a non-existent node, skip that ID if the ID is generated by the plugin. See: https://github.com/svg/svgo/issues/1815 diff --git a/test/plugins/cleanupNumericValues.01.svg.txt b/test/plugins/cleanupNumericValues.01.svg.txt index 389a8c433..aa4ebc4e8 100644 --- a/test/plugins/cleanupNumericValues.01.svg.txt +++ b/test/plugins/cleanupNumericValues.01.svg.txt @@ -1,9 +1,9 @@ - + @@@ - + diff --git a/test/plugins/collapseGroups.06.svg.txt b/test/plugins/collapseGroups.06.svg.txt index 963945df4..a256de09b 100644 --- a/test/plugins/collapseGroups.06.svg.txt +++ b/test/plugins/collapseGroups.06.svg.txt @@ -1,4 +1,4 @@ -Remove inheritable overriden groups attributes +Remove inheritable overridden groups attributes === diff --git a/test/plugins/collapseGroups.07.svg.txt b/test/plugins/collapseGroups.07.svg.txt index a72c3caa1..f595b69d7 100644 --- a/test/plugins/collapseGroups.07.svg.txt +++ b/test/plugins/collapseGroups.07.svg.txt @@ -1,4 +1,4 @@ -Remove equal overriden groups attributes +Remove equal overridden groups attributes === diff --git a/test/plugins/removeHiddenElems.12.svg.txt b/test/plugins/removeHiddenElems.12.svg.txt index b092c77e2..f22f8eb11 100644 --- a/test/plugins/removeHiddenElems.12.svg.txt +++ b/test/plugins/removeHiddenElems.12.svg.txt @@ -1,4 +1,4 @@ -Keep invisible elements which have visibile ones inside +Keep invisible elements which have visible ones inside and resolve styles === diff --git a/test/plugins/removeScriptElement.04.svg.txt b/test/plugins/removeScriptElement.04.svg.txt index 039f4315d..1c3c2fcef 100644 --- a/test/plugins/removeScriptElement.04.svg.txt +++ b/test/plugins/removeScriptElement.04.svg.txt @@ -1,5 +1,5 @@ If making different modifications to two different nodes in the same parent, -drop attributes and collapse nodes approriately without losing elements. +drop attributes and collapse nodes appropriately without losing elements. ===