From 9700c32bc9631c140beab720243c786e86991e9a Mon Sep 17 00:00:00 2001 From: "asamuzaK (Kazz)" Date: Sun, 7 Aug 2016 21:26:04 +0900 Subject: [PATCH] Optimize SVG icons (#1860) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Omit XML declaration: * XML version is 1.0 * encoding is UTF-8 * standalone is no so it can be omitted. * Remove unnecessary attributes: * `xmlns:rdf`, `xmlns:cc`, `xmlns:dc`, `xmlns:xlink` are not used in these SVG icons. * No text inside SVG, so `xml:space` is unnecessary. * `version` attribute will be removed in SVG 2. [Changes from SVG 1.1 — SVG 2](https://svgwg.org/svg2-draft/changes.html#structure) * `x` and `y` can be omitted if they are `0`. * Remove `enable-background` attribute / style property: * Firefox / Safari does not support `enable-background`. * It is proposed to be deprecated in SVG 2. [Filter Effects Module Level 1](https://drafts.fxtf.org/filters/#AccessBackgroundImage) * Remove empty `g` elements. * Add `width` and `height` attributes in `safari-icon16-off.svg`: * They are in safari-icon16.svg, simple missing? --- .../firefox/img/browsericons/icon16-off.svg | 5 +-- platform/firefox/img/browsericons/icon16.svg | 5 +-- .../firefox/img/browsericons/icon24-off.svg | 5 +-- platform/firefox/img/browsericons/icon24.svg | 5 +-- .../img/browsericons/safari-icon16-off.svg | 43 ++----------------- .../safari/img/browsericons/safari-icon16.svg | 11 +---- 6 files changed, 14 insertions(+), 60 deletions(-) diff --git a/platform/firefox/img/browsericons/icon16-off.svg b/platform/firefox/img/browsericons/icon16-off.svg index ae5c9df05..f0f68be23 100644 --- a/platform/firefox/img/browsericons/icon16-off.svg +++ b/platform/firefox/img/browsericons/icon16-off.svg @@ -1,7 +1,6 @@ - + - - + diff --git a/platform/firefox/img/browsericons/icon16.svg b/platform/firefox/img/browsericons/icon16.svg index 5da05a5e5..d36d9d232 100644 --- a/platform/firefox/img/browsericons/icon16.svg +++ b/platform/firefox/img/browsericons/icon16.svg @@ -1,7 +1,6 @@ - + - - + diff --git a/platform/firefox/img/browsericons/icon24-off.svg b/platform/firefox/img/browsericons/icon24-off.svg index 9ea55a45b..0856eef34 100644 --- a/platform/firefox/img/browsericons/icon24-off.svg +++ b/platform/firefox/img/browsericons/icon24-off.svg @@ -1,7 +1,6 @@ - + - - + diff --git a/platform/firefox/img/browsericons/icon24.svg b/platform/firefox/img/browsericons/icon24.svg index 848306a09..28f75a726 100644 --- a/platform/firefox/img/browsericons/icon24.svg +++ b/platform/firefox/img/browsericons/icon24.svg @@ -1,7 +1,6 @@ - + - - + diff --git a/platform/safari/img/browsericons/safari-icon16-off.svg b/platform/safari/img/browsericons/safari-icon16-off.svg index 8291978df..57f67bdf3 100644 --- a/platform/safari/img/browsericons/safari-icon16-off.svg +++ b/platform/safari/img/browsericons/safari-icon16-off.svg @@ -1,39 +1,4 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + diff --git a/platform/safari/img/browsericons/safari-icon16.svg b/platform/safari/img/browsericons/safari-icon16.svg index b948eeb1d..f4e68c2b6 100644 --- a/platform/safari/img/browsericons/safari-icon16.svg +++ b/platform/safari/img/browsericons/safari-icon16.svg @@ -1,11 +1,4 @@ - + - - +