Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 328 Bytes

rm-viewbox.md

File metadata and controls

22 lines (19 loc) · 328 Bytes

rm-viewbox

  • Default configuration:
{
	"rules": {
		"rm-viewbox": true
	}
}
  • Explanation:
    • When x, y, width, height are exactly the same, remove viewBox property

E.g:

<svg width="1000" height="600" viewBox="0 0 1000 600">

After optimization will become:

<svg width="1000" height="600">