Adding x: namespace prefix to href

This commit is contained in:
Pavel Nikulin
2019-03-15 20:04:43 +06:00
parent bfcdb45b82
commit 01482e01ef
14 changed files with 40 additions and 45 deletions

View File

@@ -1,6 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg"
<svg xmlns="http://www.w3.org/2000/svg" xmlns:x="http://www.w3.org/1999/xlink"
aria-label="Angular" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#fff"/><g fill="#c3002f"><path id="a" d="M256 65v42l111 249h-42l-22-55h-47v146l151-84 27-235-178-63zm0 123v78h33l-33-78z"/></g><use fill="#dd0031" href="#a" transform="matrix(-1,0,0,1,512,0)"/></svg>
fill="#fff"/><g fill="#c3002f"><path id="a" d="M256 65v42l111 249h-42l-22-55h-47v146l151-84 27-235-178-63zm0 123v78h33l-33-78z"/></g><use fill="#dd0031" x:href="#a" transform="matrix(-1,0,0,1,512,0)"/></svg>

Before

Width:  |  Height:  |  Size: 340 B

After

Width:  |  Height:  |  Size: 381 B

View File

@@ -1,7 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
<svg xmlns="http://www.w3.org/2000/svg" xmlns:x="http://www.w3.org/1999/xlink"
aria-label="Apple Music" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#fff"/><path id="c" d="M199 359V199q0-9 10-11l138-28q11-2 12 10v122q0 15-45 20c-57 9-48 105 30 79 30-11 35-40 35-69V88s0-20-17-15l-170 35s-13 2-13 18v203q0 15-45 20c-57 9-48 105 30 79 30-11 35-40 35-69"/><filter id="f"><feGaussianBlur stdDeviation="3"/><feComposite operator="out"/></filter><linearGradient id="d" x1=".78" x2=".29" y1=".92" y2=".6"><stop stop-color="#3ea7fc"/><stop offset="1" stop-color="#fff0"/></linearGradient><linearGradient id="e" x1=".75" x2=".93" y1=".16" y2=".59"><stop stop-color="#fd5b70"/><stop offset="1" stop-color="#fff0"/></linearGradient><use fill="#915fff" xlink:href="#c"/><use fill="url(#d)" xlink:href="#c"/><use fill="url(#e)" xlink:href="#c"/><clipPath id="b"><use xlink:href="#c"/></clipPath><use filter="url(#f)" fill="#777" xlink:href="#c" clip-path="url(#b)"/></svg>
fill="#fff"/><path id="c" d="M199 359V199q0-9 10-11l138-28q11-2 12 10v122q0 15-45 20c-57 9-48 105 30 79 30-11 35-40 35-69V88s0-20-17-15l-170 35s-13 2-13 18v203q0 15-45 20c-57 9-48 105 30 79 30-11 35-40 35-69"/><filter id="f"><feGaussianBlur stdDeviation="3"/><feComposite operator="out"/></filter><linearGradient id="d" x1=".78" x2=".29" y1=".92" y2=".6"><stop stop-color="#3ea7fc"/><stop offset="1" stop-color="#fff0"/></linearGradient><linearGradient id="e" x1=".75" x2=".93" y1=".16" y2=".59"><stop stop-color="#fd5b70"/><stop offset="1" stop-color="#fff0"/></linearGradient><use fill="#915fff" x:href="#c"/><use fill="url(#d)" x:href="#c"/><use fill="url(#e)" x:href="#c"/><clipPath id="b"><use x:href="#c"/></clipPath><use filter="url(#f)" fill="#777" x:href="#c" clip-path="url(#b)"/></svg>

Before

Width:  |  Height:  |  Size: 997 B

After

Width:  |  Height:  |  Size: 974 B

View File

@@ -1,8 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
<svg xmlns="http://www.w3.org/2000/svg" xmlns:x="http://www.w3.org/1999/xlink"
aria-label="Buffer" role="img"
viewBox="0 0 512 512"
fill="#fff"><rect
width="512" height="512"
rx="15%"
fill="#000"/><path d="M84 166q-7.5-4.5 0-9l162-75q10-4.5 20 0l162 75q7.5 4.5 0 9l-162 75q-10 4.5-20 0z"/><path id="a" d="M84 251q-7.5 5 0 10l162 75q10 3 20 0l162-75q7.5-5 0-10l-32-14q-10.5-4.5-21 0l-109 50q-10 4.5-20 0l-109-50q-10.5-4.5-21 0z"/><use transform="translate(0 94)" xlink:href="#a"/></svg>
fill="#000"/><path d="M84 166q-7.5-4.5 0-9l162-75q10-4.5 20 0l162 75q7.5 4.5 0 9l-162 75q-10 4.5-20 0z"/><path id="a" d="M84 251q-7.5 5 0 10l162 75q10 3 20 0l162-75q7.5-5 0-10l-32-14q-10.5-4.5-21 0l-109 50q-10 4.5-20 0l-109-50q-10.5-4.5-21 0z"/><use transform="translate(0 94)" x:href="#a"/></svg>

Before

Width:  |  Height:  |  Size: 489 B

After

Width:  |  Height:  |  Size: 482 B

View File

@@ -1,5 +1,4 @@
<svg onload="w()" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
<svg onload="w()" xmlns="http://www.w3.org/2000/svg" xmlns:x="http://www.w3.org/1999/xlink"
aria-label="Calendar" role="img"
viewBox="0 0 512 512"
style="font-family:monospace;text-anchor:middle;fill:#667777"><script type="text/ecmascript"><![CDATA[w=()=>{c=0;for (i in e={weekday:"long",month:"short",day:'numeric'}) document.getElementsByTagName('text')[c++].textContent=(new Date).toLocaleString(undefined,{[i]:e[i]})}]]></script>
@@ -10,4 +9,4 @@ rx="15%"/></clipPath></defs>
width="512" height="512"
fill="#dee"/><rect
width="512" height="180"
fill="#d34"/></g><g id="b"><circle fill="#eab" cx="384" cy="100" r="14" id="a"/><use x="43" href="#a"/><use x="86" href="#a"/></g><use y="43" href="#b"/><text font-size="64" x="256" y="480" id="w">Sunday</text><text fill="#fff" font-size="140" x="140" y="164" id="m">FEB</text><text font-size="256" x="256" y="400" id="d">29</text></svg>
fill="#d34"/></g><g id="b"><circle fill="#eab" cx="384" cy="100" r="14" id="a"/><use x="43" x:href="#a"/><use x="86" x:href="#a"/></g><use y="43" x:href="#b"/><text font-size="64" x="256" y="480" id="w">Sunday</text><text fill="#fff" font-size="140" x="140" y="164" id="m">FEB</text><text font-size="256" x="256" y="400" id="d">29</text></svg>

Before

Width:  |  Height:  |  Size: 957 B

After

Width:  |  Height:  |  Size: 959 B

View File

@@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg"
<svg xmlns="http://www.w3.org/2000/svg" xmlns:x="http://www.w3.org/1999/x"
aria-label="DuckDuckGo" role="img"
viewBox="0 0 512 512" fill="#fff"><rect
width="512" height="512"
rx="15%"/><g transform="matrix(2,0,0,2,256,256)"><circle r="108" fill="#d53"/><circle r="96" fill="none" stroke="#fff" stroke-width="7"/><path d="M-32-55C-62-48-51-6-51-6l19 93 7 3M-39-73h-8l11 4s-11 0-11 7c24-1 35 5 35 5" fill="#ddd"/><path d="M25 95S1 57 1 32c0-47 31-7 31-44S1-58 1-58C-14-77-43-73-43-73l7 4s-7 2-10 4 19 -3 28 5c-37 3-31 33-31 33L-27 93"/><path d="M25-1 63-11C97-6 34 13 30 12 0 7 9 32 45 24s10 20-24 9C-26 20-1-3 25-1" fill="#fc0"/><path d="M15 78l2-3c22 8 23 11 22-9s0-20-23-3c0-5-13-3-15 0-21-9-23-12-22 2 2 29 1 24 21 14" fill="#6b5"/><path d="M-1 67S-2 77-1 79s17 2 17-2S8 80 3 78 1 65 1 65" fill="#4a4"/><g fill="#148"><path d="M-25-36c-16-8-15 8-15 8 3-11 15-8 15-8m49 0c-9-5-15 1-15 1 6-11 15-1 15-1"/><path id="a" d="M-33-15c0 9 14 9 14 0S-33-24-33-15m8-2a2 2 0 0 1 4 0A2 2 0 0 1-25-17"/><use href="#a" x="48" y="-7" transform="scale(.9)"/></g></g></svg>
rx="15%"/><g transform="matrix(2,0,0,2,256,256)"><circle r="108" fill="#d53"/><circle r="96" fill="none" stroke="#fff" stroke-width="7"/><path d="M-32-55C-62-48-51-6-51-6l19 93 7 3M-39-73h-8l11 4s-11 0-11 7c24-1 35 5 35 5" fill="#ddd"/><path d="M25 95S1 57 1 32c0-47 31-7 31-44S1-58 1-58C-14-77-43-73-43-73l7 4s-7 2-10 4 19 -3 28 5c-37 3-31 33-31 33L-27 93"/><path d="M25-1 63-11C97-6 34 13 30 12 0 7 9 32 45 24s10 20-24 9C-26 20-1-3 25-1" fill="#fc0"/><path d="M15 78l2-3c22 8 23 11 22-9s0-20-23-3c0-5-13-3-15 0-21-9-23-12-22 2 2 29 1 24 21 14" fill="#6b5"/><path d="M-1 67S-2 77-1 79s17 2 17-2S8 80 3 78 1 65 1 65" fill="#4a4"/><g fill="#148"><path d="M-25-36c-16-8-15 8-15 8 3-11 15-8 15-8m49 0c-9-5-15 1-15 1 6-11 15-1 15-1"/><path id="a" d="M-33-15c0 9 14 9 14 0S-33-24-33-15m8-2a2 2 0 0 1 4 0A2 2 0 0 1-25-17"/><use x:href="#a" x="48" y="-7" transform="scale(.9)"/></g></g></svg>

Before

Width:  |  Height:  |  Size: 1023 B

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -1,10 +1,8 @@
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
<svg xmlns="http://www.w3.org/2000/svg" xmlns:x="http://www.w3.org/1999/xlink"
aria-label="GOG.com" role="img"
viewBox="0 0 512 512"
fill="#333">
<rect
width="512" height="512"
rx="15%"
fill="#fff"/><path id="g" d="M84 265h82q17-1 18-18V139q-1-17-18-18h-64q-17 1-18 18v64q1 17 18 18h43v-24h-29q-8 0-8-8v-36q0-8 8-8h36q8 0 8 8v80q0 8-8 8H84z"/><path id="o" d="M224 221h64q17-1 18-18v-64q-1-17-18-18h-64q-17 1-18 18v64q1 17 18 18zm14-24q-8 0-8-8v-36q0-8 8-8h36q8 0 8 8v36q0 8-8 8z"/><use x="244" href="#g"/><use x="-19" y="170" xlink:href="#o"/><path d="M307 391h24v-67q0-8 8-8h16v75h24v-67q0-8 8-8h16v75h24V291H325q-17-1-18 18zM167 291h-65q-17 1-18 18v64q1 17 18 18h65v-24h-51q-8 0-8-8v-36q0-8 8-8h51z"/></svg>
fill="#fff"/><path id="g" d="M84 265h82q17-1 18-18V139q-1-17-18-18h-64q-17 1-18 18v64q1 17 18 18h43v-24h-29q-8 0-8-8v-36q0-8 8-8h36q8 0 8 8v80q0 8-8 8H84z"/><path id="o" d="M224 221h64q17-1 18-18v-64q-1-17-18-18h-64q-17 1-18 18v64q1 17 18 18zm14-24q-8 0-8-8v-36q0-8 8-8h36q8 0 8 8v36q0 8-8 8z"/><use x="244" x:href="#g"/><use x="-19" y="170" x:href="#o"/><path d="M307 391h24v-67q0-8 8-8h16v75h24v-67q0-8 8-8h16v75h24V291H325q-17-1-18 18zM167 291h-65q-17 1-18 18v64q1 17 18 18h65v-24h-51q-8 0-8-8v-36q0-8 8-8h51z"/></svg>

Before

Width:  |  Height:  |  Size: 714 B

After

Width:  |  Height:  |  Size: 708 B

View File

@@ -1,8 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg"
<svg xmlns="http://www.w3.org/2000/svg" xmlns:x="http://www.w3.org/1999/xlink"
aria-label="Google Maps" role="img"
viewBox="0 0 512 512"><rect
id="a"
width="512" height="512"
x="0" y="0"
rx="15%"
fill="#fff"/><clipPath id="b"><use href="#a"/></clipPath><g clip-path="url(#b)"><path fill="#35a85b" d="M0 512V0h512z"/><path fill="#5881ca" d="M256 288L32 512h448z"/><path fill="#c1c0be" d="M288 256L512 32v448z"/><path stroke="#fadb2a" stroke-width="71" d="M0 512L512 0"/><path fill="none" stroke="#f2f2f2" stroke-width="22" d="M175 173h50a50 54 0 1 1-15-41"/><path fill="#de3738" d="M353 85a70 70 0 0 1 140 0c0 70-70 70-70 157 0-87-70-87-70-157"/><circle cx="423" cy="89" r="25" fill="#7d2426"/></g></svg>
fill="#fff"/><clipPath id="b"><use x:href="#a"/></clipPath><g clip-path="url(#b)"><path fill="#35a85b" d="M0 512V0h512z"/><path fill="#5881ca" d="M256 288L32 512h448z"/><path fill="#c1c0be" d="M288 256L512 32v448z"/><path stroke="#fadb2a" stroke-width="71" d="M0 512L512 0"/><path fill="none" stroke="#f2f2f2" stroke-width="22" d="M175 173h50a50 54 0 1 1-15-41"/><path fill="#de3738" d="M353 85a70 70 0 0 1 140 0c0 70-70 70-70 157 0-87-70-87-70-157"/><circle cx="423" cy="89" r="25" fill="#7d2426"/></g></svg>

Before

Width:  |  Height:  |  Size: 665 B

After

Width:  |  Height:  |  Size: 706 B

View File

@@ -1,6 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
<svg xmlns="http://www.w3.org/2000/svg" xmlns:x="http://www.w3.org/1999/xlink"
aria-label="JSON" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#fff"/><linearGradient id="a" x1="0.175" y1="0.15" x2="1" y2="0.85"><stop/><stop offset="1" stop-color="#fff"/></linearGradient><path id="b" fill="url(#a)" d="M256 64c-99 0-192 81-192 192 0 123 102 192 192 192-21 0-125-23-125-166 0-89 73-139 125-119 0 0 56 21 56 93s-56 93-56 93c51 20 125-27 125-119 0-129-87-166-125-166z"/><use transform="rotate(180 256 256)" xlink:href="#b"/></svg>
fill="#fff"/><linearGradient id="a" x1="0.175" y1="0.15" x2="1" y2="0.85"><stop/><stop offset="1" stop-color="#fff"/></linearGradient><path id="b" fill="url(#a)" d="M256 64c-99 0-192 81-192 192 0 123 102 192 192 192-21 0-125-23-125-166 0-89 73-139 125-119 0 0 56 21 56 93s-56 93-56 93c51 20 125-27 125-119 0-129-87-166-125-166z"/><use transform="rotate(180 256 256)" x:href="#b"/></svg>

Before

Width:  |  Height:  |  Size: 565 B

After

Width:  |  Height:  |  Size: 557 B

View File

@@ -1,6 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg"
<svg xmlns="http://www.w3.org/2000/svg" xmlns:x="http://www.w3.org/1999/xlink"
aria-label="LastPass" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#d32d27"/><g fill="#fff"><circle cx="108" cy="256" r="44" id="c"/><use href="#c" x="119"/><use href="#c" x="239"/><rect height="192" rx="2%" width="20" x="428" y="160"/></g></svg>
fill="#d32d27"/><g fill="#fff"><circle cx="108" cy="256" r="44" id="c"/><use x:href="#c" x="119"/><use x:href="#c" x="239"/><rect height="192" rx="2%" width="20" x="428" y="160"/></g></svg>

Before

Width:  |  Height:  |  Size: 320 B

After

Width:  |  Height:  |  Size: 364 B

View File

@@ -1,6 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg"
<svg xmlns="http://www.w3.org/2000/svg" xmlns:x="http://www.w3.org/1999/xlink"
aria-label="PHP" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#777bb3"/><g stroke="#fff" stroke-width="6"><path id="a" d="M155 202H97a3 3 0 0 0-3 2L67 345c0 3 3 3 3 3h30c3 0 3-2 3-2l7-35h27c42 0 63-28 68-53s1-56-50-56zm13 54c-4 19-17 27-35 27h-18l11-53h18c27 0 26 10 24 26z"/><path d="M275 311c-4 0-3-4-3-4l12-61c0-8 6-16-18-15h-18l-15 78s0 3-4 3h-29c-3 0-3-3-3-3l28-141s0-2 4-2h30c3 0 2 3 2 3l-7 34h26c36 0 45 17 42 37l-13 69s0 3-5 3z"/><use href="#a" x="239"/></g></svg>
fill="#777bb3"/><g stroke="#fff" stroke-width="6"><path id="a" d="M155 202H97a3 3 0 0 0-3 2L67 345c0 3 3 3 3 3h30c3 0 3-2 3-2l7-35h27c42 0 63-28 68-53s1-56-50-56zm13 54c-4 19-17 27-35 27h-18l11-53h18c27 0 26 10 24 26z"/><path d="M275 311c-4 0-3-4-3-4l12-61c0-8 6-16-18-15h-18l-15 78s0 3-4 3h-29c-3 0-3-3-3-3l28-141s0-2 4-2h30c3 0 2 3 2 3l-7 34h26c36 0 45 17 42 37l-13 69s0 3-5 3z"/><use x:href="#a" x="239"/></g></svg>

Before

Width:  |  Height:  |  Size: 547 B

After

Width:  |  Height:  |  Size: 588 B

View File

@@ -1,6 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg"
<svg xmlns="http://www.w3.org/2000/svg" xmlns:x="http://www.w3.org/1999/xlink"
aria-label="Python" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#fff"/><g fill="#5a9fd4"><path id="p" d="M254 64c-16 0-31 1-44 4-39 7-46 21-46 47v35h92v12H130c-27 0-50 16-58 46-8 35-8 57 0 93 7 28 23 47 49 47h32v-42c0-30 26-57 57-57h91c26 0 46-21 46-46v-88c0-24-21-43-46-47-15-3-32-4-47-4zm-50 28c10 0 17 8 17 18 0 9-7 17-17 17-9 0-17-8-17-17 0-10 8-18 17-18z"/></g><use href="#p" fill="#ffd43b" transform="rotate(180,256,255)"/></svg>
fill="#fff"/><g fill="#5a9fd4"><path id="p" d="M254 64c-16 0-31 1-44 4-39 7-46 21-46 47v35h92v12H130c-27 0-50 16-58 46-8 35-8 57 0 93 7 28 23 47 49 47h32v-42c0-30 26-57 57-57h91c26 0 46-21 46-46v-88c0-24-21-43-46-47-15-3-32-4-47-4zm-50 28c10 0 17 8 17 18 0 9-7 17-17 17-9 0-17-8-17-17 0-10 8-18 17-18z"/></g><use x:href="#p" fill="#ffd43b" transform="rotate(180,256,255)"/></svg>

Before

Width:  |  Height:  |  Size: 510 B

After

Width:  |  Height:  |  Size: 552 B

View File

@@ -1,6 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg"
<svg xmlns="http://www.w3.org/2000/svg" xmlns:x="http://www.w3.org/1999/xlink"
aria-label="Slack" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#fff"/><g fill="#e01e5a"><path id="a" d="M149 305a39 39 0 0 1-78 0c0-22 17-39 39-39h39zM168 305a39 39 0 0 1 78 0v97a39 39 0 0 1-78 0z"/></g><use href="#a" fill="#36c5f0" transform="rotate(90,256,256)"/><use href="#a" fill="#2eb67d" transform="rotate(180,256,256)"/><use href="#a" fill="#ecb22e" transform="rotate(270,256,256)"/></svg>
fill="#fff"/><g fill="#e01e5a"><path id="a" d="M149 305a39 39 0 0 1-78 0c0-22 17-39 39-39h39zM168 305a39 39 0 0 1 78 0v97a39 39 0 0 1-78 0z"/></g><use x:href="#a" fill="#36c5f0" transform="rotate(90,256,256)"/><use x:href="#a" fill="#2eb67d" transform="rotate(180,256,256)"/><use x:href="#a" fill="#ecb22e" transform="rotate(270,256,256)"/></svg>

Before

Width:  |  Height:  |  Size: 472 B

After

Width:  |  Height:  |  Size: 518 B

View File

@@ -1,6 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg"
<svg xmlns="http://www.w3.org/2000/svg" xmlns:x="http://www.w3.org/1999/xlink"
aria-label="Twilio" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#fff"/><g fill="#f22f46"><circle cx="256" cy="256" r="256"/><circle cx="256" cy="256" fill="#fff" r="188"/><circle cx="193" cy="193" r="53" id="c"/><use href="#c" x="126"/><use href="#c" y="126"/><use href="#c" x="126" y="126"/></g></svg>
fill="#fff"/><g fill="#f22f46"><circle cx="256" cy="256" r="256"/><circle cx="256" cy="256" fill="#fff" r="188"/><circle cx="193" cy="193" r="53" id="c"/><use x:href="#c" x="126"/><use x:href="#c" y="126"/><use x:href="#c" x="126" y="126"/></g></svg>

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 423 B