1234567891011121314151617181920212223242526272829303132 |
- 'use strict';
- exports.type = 'perItem';
- exports.active = false;
- exports.description = 'removes width and height in presence of viewBox';
- exports.fn = function(item) {
- if (
- item.isElem('svg') &&
- item.hasAttr('viewBox')
- ) {
- item.removeAttr('width');
- item.removeAttr('height');
- }
- };
|