* some basic tests

* corrected svg which didn't pass tests

* Updated apple_music.svg

* corrected offset=0

* updated README.md
This commit is contained in:
Jonathan
2020-11-08 12:42:38 +01:00
committed by GitHub
parent d93875eb31
commit 0f21dd68a1
13 changed files with 963 additions and 19 deletions

View File

@@ -1,6 +1,5 @@
<!DOCTYPE a[<!ENTITY z "linearGradient"><!ENTITY y "<stop offset='1'/>"><!ENTITY x "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">]>
<svg xmlns="http://www.w3.org/2000/svg"
aria-label="Apple Music" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%" fill="#fff"/><style>stop:last-child{stop-color:#fff;stop-opacity:0}</style><linearGradient id="d" x1=".78" x2=".29" y1=".92" y2=".6"><stop stop-color="#39f"/>&y;</linearGradient><linearGradient id="e" x1=".75" x2=".93" y1=".16" y2=".59"><stop stop-color="#f66"/>&y;</linearGradient><path fill="#96f" d="&x;"/><path fill="url(#d)" d="&x;"/><path fill="url(#e)" d="&x;"/></svg>
rx="15%" fill="url(#g)"/><linearGradient id="g" x1=".5" y1=".99" x2=".5" y2=".02"><stop offset="0" stop-color="#FA233B"/><stop offset="1" stop-color="#FB5C74"/></linearGradient><path fill="#fff" 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"/></svg>

Before

Width:  |  Height:  |  Size: 780 B

After

Width:  |  Height:  |  Size: 515 B

View File

@@ -3,4 +3,4 @@ aria-label="Friendica" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#fff"/><defs><linearGradient id="l" x2="0" y2="1"><stop stop-color="#ffffff" stop-opacity="0.4"/><stop offset="0.3" stop-color="#d6d7e8" stop-opacity="0"/><stop stop-opacity="0" offset="0.7"/><stop stop-opacity="0.4" offset="1"/></linearGradient></defs><rect fill="#000" rx="50" height="334" width="334" x="89" y="89"/><path d="m144 89c-30 0-55 25-55 55v225c0 30 25 55 55 55h225c30 0 55-25 55-55v-225c0-30-25-55-55-55z" fill="#000"/><path d="m144 102c-23 0-42 18-42 42v225c0 23 18 42 42 42h52v-88h108v-67h-108v-81h107.54687v-73z" fill="#ffc019"/><path d="m316 102v87h-107v67h107v81h-107v74h160c23 0 42-18 41-42v-225c0-23-18-42-42-42z" fill="#1872a2"/><rect fill="url(#l)" rx="50" height="334" width="334" x="89" y="89"/></svg>
fill="#fff"/><defs><linearGradient id="l" x2="0" y2="1"><stop stop-color="#ffffff" stop-opacity="0.4" offset="0"/><stop offset=".3" stop-color="#d6d7e8" stop-opacity="0"/><stop stop-opacity="0" offset=".7"/><stop stop-opacity=".4" offset="1"/></linearGradient></defs><rect fill="#000" rx="50" height="334" width="334" x="89" y="89"/><path d="m144 89c-30 0-55 25-55 55v225c0 30 25 55 55 55h225c30 0 55-25 55-55v-225c0-30-25-55-55-55z" fill="#000"/><path d="m144 102c-23 0-42 18-42 42v225c0 23 18 42 42 42h52v-88h108v-67h-108v-81h107.54687v-73z" fill="#ffc019"/><path d="m316 102v87h-107v67h107v81h-107v74h160c23 0 42-18 41-42v-225c0-23-18-42-42-42z" fill="#1872a2"/><rect fill="url(#l)" rx="50" height="334" width="334" x="89" y="89"/></svg>

Before

Width:  |  Height:  |  Size: 869 B

After

Width:  |  Height:  |  Size: 877 B

View File

@@ -2,4 +2,4 @@
aria-label="Grafana" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"/><linearGradient id="a" x1="9%" y1="30%" x2="9%" y2="99%"><stop stop-color="#F05A28"/><stop offset="1" stop-color="#FBCA0A"/></linearGradient><path fill="url(#a)" d="M390 146c5-22-7-40-7-40-20-2-34 6-38 10-13-6-26-9-39-11-9-29-35-41-35-41a78 78 0 00-34 45c-16 5-31 12-43 21-24-10-53-9-77 2-3 43 16 70 20 74-5 14-9 29-10 42-37 19-48 56-48 56 16 17 43 38 67 38 7 12 15 22 24 32-11 32 1 58 1 58 35 2 57-15 62-18 19 5 37 9 56 8 11 14 27 23 45 26 11-16 21-33 21-49 14-10 26-23 35-37 22 2 39-14 39-14-3-14-10-30-22-38 3-23-2-46-13-65-19-30-51-47-85-47-23 0-44 11-58 27a71 71 0 00-15 65c5 19 21 35 38 39s34 2 43-7c3-3-1-8-5-6-7 3-14 4-22 3-59-9-45-86 10-89 11-2 26 3 35 7 32 21 39 52 26 84a92 92 0 01-76 51c-18 0-35-5-49-12-34-20-56-53-58-92-3-76 41-110 90-121 29-6 61-3 87 10 36 18 61 52 72 91 1 4 6 4 6-1 0-38-17-75-43-101z"/></svg>
rx="15%"/><linearGradient id="a" x1="9%" y1="30%" x2="9%" y2="99%"><stop stop-color="#F05A28" offset="0"/><stop offset="1" stop-color="#FBCA0A"/></linearGradient><path fill="url(#a)" d="M390 146c5-22-7-40-7-40-20-2-34 6-38 10-13-6-26-9-39-11-9-29-35-41-35-41a78 78 0 00-34 45c-16 5-31 12-43 21-24-10-53-9-77 2-3 43 16 70 20 74-5 14-9 29-10 42-37 19-48 56-48 56 16 17 43 38 67 38 7 12 15 22 24 32-11 32 1 58 1 58 35 2 57-15 62-18 19 5 37 9 56 8 11 14 27 23 45 26 11-16 21-33 21-49 14-10 26-23 35-37 22 2 39-14 39-14-3-14-10-30-22-38 3-23-2-46-13-65-19-30-51-47-85-47-23 0-44 11-58 27a71 71 0 00-15 65c5 19 21 35 38 39s34 2 43-7c3-3-1-8-5-6-7 3-14 4-22 3-59-9-45-86 10-89 11-2 26 3 35 7 32 21 39 52 26 84a92 92 0 01-76 51c-18 0-35-5-49-12-34-20-56-53-58-92-3-76 41-110 90-121 29-6 61-3 87 10 36 18 61 52 72 91 1 4 6 4 6-1 0-38-17-75-43-101z"/></svg>

Before

Width:  |  Height:  |  Size: 961 B

After

Width:  |  Height:  |  Size: 973 B

View File

@@ -3,4 +3,4 @@ aria-label="iTunes" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="url(#a)"/><defs><linearGradient id="a" y1="100%" x2="0%"><stop style="stop-color:#832bc1;"/><stop offset="100%" style="stop-color:#f452ff;"/></linearGradient></defs><path d="M293 294c-8-8-21-13-37-13s-29 5-37 13c-4 5-6 9-7 15-1 12 0 22 1 39a891 891 0 0 0 13 87c3 9 14 18 30 18 17 0 27-9 30-18a891 891 0 0 0 14-126c-1-6-3-10-7-15zm-79-72a42 42 0 1 0 84 0 42 42 0 0 0-84 0zm42-165a180 180 0 0 0-60 350c2 0 4-1 4-3l-3-18c0-3-2-4-4-5a157 157 0 1 1 126 0c-2 1-4 2-4 5l-3 18c0 2 2 3 4 3a180 180 0 0 0-60-350zm-4 82a98 98 0 0 1 71 169c-2 1-3 4-2 6l-1 20c0 2 2 4 4 2a121 121 0 1 0-136 1c2 1 4-1 4-3v-20c0-2-1-5-3-6a97 97 0 0 1 63-169z" fill="#fff"/></svg>
fill="url(#a)"/><defs><linearGradient id="a" y1="100%" x2="0"><stop stop-color="#832bc1" offset="0"/><stop offset="1" stop-color="#f452ff"/></linearGradient></defs><path d="M293 294c-8-8-21-13-37-13s-29 5-37 13c-4 5-6 9-7 15-1 12 0 22 1 39a891 891 0 0 0 13 87c3 9 14 18 30 18 17 0 27-9 30-18a891 891 0 0 0 14-126c-1-6-3-10-7-15zm-79-72a42 42 0 1 0 84 0 42 42 0 0 0-84 0zm42-165a180 180 0 0 0-60 350c2 0 4-1 4-3l-3-18c0-3-2-4-4-5a157 157 0 1 1 126 0c-2 1-4 2-4 5l-3 18c0 2 2 3 4 3a180 180 0 0 0-60-350zm-4 82a98 98 0 0 1 71 169c-2 1-3 4-2 6l-1 20c0 2 2 4 4 2a121 121 0 1 0-136 1c2 1 4-1 4-3v-20c0-2-1-5-3-6a97 97 0 0 1 63-169z" fill="#fff"/></svg>

Before

Width:  |  Height:  |  Size: 786 B

After

Width:  |  Height:  |  Size: 780 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"
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=".175" y1=".15" x2="1" y2=".85"><stop offset="0"/><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)" href="#b"/></svg>

Before

Width:  |  Height:  |  Size: 564 B

After

Width:  |  Height:  |  Size: 524 B

View File

@@ -3,4 +3,4 @@ aria-label="Kaggle" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#fff"/><path fill="#20BEFF" d="M106,103c-0.06,0.3-0.3,0.4-0.8,0.4h-8c-0.5,0-0.9-0.2-1.3-0.6L82.746,86.028l-3.655,3.477v13c0,0.6-0.3,0.9-0.9,0.9h-6.152c-0.6,0-0.9-0.3-0.9-0.9V44c0-0.6,0.3-0.9,0.9-0.9h6.1c0.6,0,0.9,0.3,0.9,0.9v36l15.692-15.87c0.416-0.415,0.832-0.624,1.248-0.624h8.204c0.356,0,0.593,0.149,0.713,0.445c0.119,0.4,0.1,0.6-0.1,0.8L88,81,21.5C106,102,106,103,106,103" transform="scale(5.5,5.5) translate(-40,-30)"/></svg>
fill="#fff"/><path fill="#20BEFF" d="M106,103c-.06,.3-.3,.4-.8,.4h-8c-.5,0-.9-.2-1.3-.6L82.746,86.028l-3.655,3.477v13c0,.6-.3,.9-.9,.9h-6.152c-.6,0-.9-.3-.9-.9V44c0-.6,.3-.9,.9-.9h6.1c.6,0,.9,.3,.9,.9v36l15.692-15.87c.416-.415,.832-.624,1.248-.624h8.204c.356,0,.593,.149,.713,.445c.119,.4,.1,.6-.1,.8L88,81C106,102,106,103,106,103" transform="scale(5.5,5.5) translate(-40-30)"/></svg>

Before

Width:  |  Height:  |  Size: 576 B

After

Width:  |  Height:  |  Size: 524 B

View File

@@ -1,4 +1,4 @@
<!DOCTYPE a[<!ENTITY z "M59.6 97.5v100h40v101a121 121 0 00120 120h198v-201a121 121 0 00-120-120z">]>
<svg xmlns="http://www.w3.org/2000/svg"
aria-label="Linux Mint" role="img"
viewBox="0 0 512 512"><filter id="b"><feGaussianBlur stdDeviation="3"/></filter><linearGradient id="g"><stop stop-color="#c7f994"/><stop stop-color="#87cf3e" offset="1"/></linearGradient><path filter="url(#b)" d="&z;" opacity=".5"/><path fill="#fff" d="&z;"/><path fill="url(#g)" d="M83.6 122.2v51.3h13.3a25 25 0 0124 24v94.9c-.3 55.9 46.7 101.4 101.5 101.5H365c13.9-.1 25-11.4 25-25V224c.3-56-46.7-101.5-101.6-101.7H83.6z"/><path d="M90.5 139.7h-7v33.8H97a25 25 0 0124 24v94.9c-.3 55.9 46.7 101.4 101.5 101.5H365c13.9-.1 25-11.4 25-25v-1.5c-24.2-10.1-69-39.6-92-122.7-26.2-95.2-158.7-104.8-207.5-105z" opacity=".1" filter="url(#b)"/><g fill="none" stroke="#fff" stroke-width="32"><path d="M160 144v160a48 48 0 0048 48h32m112-48v-80a32 32 0 00-64 0v80m0-80a32 32 0 00-64 0v80"/><path d="M240 352h64a48 48 0 0048-48" opacity=".5"/></g></svg>
viewBox="0 0 512 512"><filter id="b"><feGaussianBlur stdDeviation="3"/></filter><linearGradient id="g"><stop stop-color="#c7f994" offset="0"/><stop stop-color="#87cf3e" offset="1"/></linearGradient><use href="#p" filter="url(#b)" opacity=".5"/><g fill="#fff"><path id="p" d="M59.6 97.5v100h40v101a121 121 0 00120 120h198v-201a121 121 0 00-120-120z"/></g><path fill="url(#g)" d="M83.6 122.2v51.3h13.3a25 25 0 0124 24v94.9c-.3 55.9 46.7 101.4 101.5 101.5H365c13.9-.1 25-11.4 25-25V224c.3-56-46.7-101.5-101.6-101.7H83.6z"/><path d="M90.5 139.7h-7v33.8H97a25 25 0 0124 24v94.9c-.3 55.9 46.7 101.4 101.5 101.5H365c13.9-.1 25-11.4 25-25v-1.5c-24.2-10.1-69-39.6-92-122.7-26.2-95.2-158.7-104.8-207.5-105z" opacity=".1" filter="url(#b)"/><g fill="none" stroke="#fff" stroke-width="32"><path d="M160 144v160a48 48 0 0048 48h32m112-48v-80a32 32 0 00-64 0v80m0-80a32 32 0 00-64 0v80"/><path d="M240 352h64a48 48 0 0048-48" opacity=".5"/></g></svg>

Before

Width:  |  Height:  |  Size: 1016 B

After

Width:  |  Height:  |  Size: 1012 B

View File

@@ -3,4 +3,4 @@ aria-label="Safari" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#fff"/><radialGradient id="a"><stop stop-color="#0bd"/><stop offset="1" stop-color="#17d"/></radialGradient><g transform="matrix(4 0 0 4 256 256)"><g stroke="#eee" fill="none"><circle r="52.5" fill="url(#a)" stroke-width="5"/><circle r="45" stroke-dasharray="1.25 8.175" stroke-dashoffset="0.5" stroke-width="5.5"/><circle r="42.5" stroke-dasharray="1.25 7.65" stroke-dashoffset="5" stroke-width="10"/></g><path d="M6 6l-12-12l-29 39" fill="#eee"/><path d="M6 6l-12-12l41-28" fill="#f55"/><path opacity=".3" d="M-35 33l7-5-3 5 37-27 28-35-4 2 4-6"/></g></svg>
fill="#fff"/><radialGradient id="a"><stop stop-color="#0bd" offset="0"/><stop offset="1" stop-color="#17d"/></radialGradient><g transform="matrix(4 0 0 4 256 256)"><g stroke="#eee" fill="none"><circle r="52.5" fill="url(#a)" stroke-width="5"/><circle r="45" stroke-dasharray="1.25 8.175" stroke-dashoffset=".5" stroke-width="5.5"/><circle r="42.5" stroke-dasharray="1.25 7.65" stroke-dashoffset="5" stroke-width="10"/></g><path d="M6 6l-12-12l-29 39" fill="#eee"/><path d="M6 6l-12-12l41-28" fill="#f55"/><path opacity=".3" d="M-35 33l7-5-3 5 37-27 28-35-4 2 4-6"/></g></svg>

Before

Width:  |  Height:  |  Size: 698 B

After

Width:  |  Height:  |  Size: 709 B