mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +03:00
plugins/cleanupEnableBackground: +TODO
This commit is contained in:
@ -28,6 +28,7 @@ exports.cleanupEnableBackground = function(item, params) {
|
|||||||
|
|
||||||
if (match = item.attr('enable-background').value.match(regEnableBackground)) {
|
if (match = item.attr('enable-background').value.match(regEnableBackground)) {
|
||||||
if (
|
if (
|
||||||
|
// TODO: not all containers have width/height attrs
|
||||||
item.attr('width').value == match[1] &&
|
item.attr('width').value == match[1] &&
|
||||||
item.attr('height').value == match[2]
|
item.attr('height').value == match[2]
|
||||||
) {
|
) {
|
||||||
|
Reference in New Issue
Block a user